Michael Fellinger wrote: > On 10/21/07, Bazsl <hs / dbginc.com> wrote: > >> Is it possible to put a class method in a module, for example: >> >> module FtpClientMod >> def self.do_send(file_template, show_progress) >> >> and include it in a class as follows? >> >> require 'ftpclientmod' >> >> class FtpClient >> include FtpClientMod >> >> When I try this I get an error that the method cannot be found. >> > > http://www.ruby-doc.org/core/classes/Object.html#M000337 > > > > I guess I was not clear. I am trying to place a class method in a module and include it in the class. I am not trying to instantiate an instance of a class and and include the method from the module in the instance, which, if I am reading your reference correctly, is what extend does. Note that I am very new to Ruby so I may be missing something. Thanks.