From: jason joo Date: 2010-08-10T10:58:29+09:00 Subject: Re: modules --000e0cd3317e290823048d6e78e1 Content-Type: text/plain; charset=ISO-8859-1 or just include Test yo in such way? 2010/8/10 Markus Fischer > 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 > > > --000e0cd3317e290823048d6e78e1--