From: Julian Leviston Date: 2005-08-15T10:47:52+09:00 Subject: Re: no clue >> >> harp:~ > cat a.rb >> class PlayerData >> class << self >> def create(*a) >> new(a.pack(FORMAT)) >> end >> end >> > > > Why do you use 'class << self' here? > > Thanks, > Joe > > Hey Joe, That's another way to define a set of a class methods. Another is PlayerData.create(*a)...end I think you can write self.create(*a)..end too. Anything within the class << self...end block will be a class method. Julian.