From: Aaron Smith Date: 2007-07-08T11:47:23+09:00 Subject: Re: get modules that are in a class? Wayne E. Seguin wrote: > On Jul 07, 2007, at 22:00 , Aaron Smith wrote: >> is it possible to find out what modules have been included inside of a >> class? > > > Yes Aaron it is, via the method "included_modules" > > http://www.ruby-doc.org/core/classes/Module.html#M001697 What about within a class? module TestModule def say_something puts "SOMETHING" end end class Test include TestModule end t = Test.new puts t.included_modules -- Posted via http://www.ruby-forum.com/.