From: Phrogz Date: 2006-10-18T22:40:18+09:00 Subject: Re: Mixin a module method as a class method Farrel Lifson wrote: > Is it possible to mix in a module method to become a class method? I'd > like to define the method_added method in a module and then mix it > into a class like so [...snip...] > So that I get > Added bar > Added baz > printed out. module Foo def method_added(method) puts "Added #{method}" end end class Bar extend Foo def bar; end def baz; end end