From: Markus Fischer Date: 2010-08-10T07:37:54+09:00 Subject: Re: modules Hi, On 09.08.2010 22:46, Rob Biedenharn wrote: > Or, if you want to use a module to hold methods to be mixed in to > another class: > > irb> module Test > irb> def yo > irb> puts 'yo' > irb> end > irb> end > => nil > irb> class Toy > irb> include Test > irb> end > => Toy > irb> Toy.new.yo > yo > => nil Interesting example. Is there another way to "access" or "make use" of "yo" besides including the module in a class? Or putting it another way: can I call yo directly when being defined that way? thanks