Module Reflection « Reflection « Ruby






1.use the included_modules method to discover what modules a class uses
2.Discover the names of any of the included modules of an instance or its class using the included_modules method from Module.