From: "Marcin Mielżyński" Date: 2006-07-09T06:55:08+09:00 Subject: Re: Definition of methods: self Damaris Fuentes wrote: > Um...wait...Do I have to set the name of the class before the name of > the method when this method is a class method (except the "initialize")? > Yes. this is the class method declaration syntax. Within class body definition the default receiver is the class itself, so the snippets beneath are equivalent: class A def A.meth end end class A def self.meth end end If there are more class methods in a class it is easier to switch to class instance: class B class << self def meth1 end # more methods end end or even: class B instance_eval do def meth1 end # more methods end end lopex