From: Sean O'Halpin Date: 2005-09-26T01:21:34+09:00 Subject: Re: Mixin of class methods? On 9/25/05, michele wrote: > How about: > > class Module > def foobar id > puts "Hello Ruby: #{id}" > end > end > > class C > foobar :example > end > > my_c = C.new > This is fine if you want to add the foobar method to ~all~ classes and modules. I'd recommend Ara's way if you want to be more selective about which classes get the methods. Sean