From: Ryan Pavlik Date: 2003-10-02T06:08:00+09:00 Subject: Re: mixing in class methods On Thu, 2 Oct 2003 06:02:32 +0900 "Mark J. Reed" wrote: > Okay, probably a dumb question, but: is there any way to define > methods in a module which become class methods of any class which > includes that module? Close: module M def foo p "Hello world" end end class C end class << C include M end C.foo # => "Hello world" hth, -- Ryan Pavlik "I've got a crude stabbing implement right here with your name all over it." - 8BT