From: Stefan Rusterholz Date: 2007-07-14T00:17:32+09:00 Subject: Re: Class methods and modules Pedro Cardoso wrote: > Hi. Thanks! > > I found another way. > > Module MyModule > def m > end > end > > class MyClass > extend MyDodule > end > > MyClass.m > > Can anyone explain the "job" of extend? > > Thanks. Extend includes the methods in the singleton class. E.g. MyClass.extend(MyModue) is (almost) equivalent to: class <