From: Leonid Razoumov Date: 2001-05-16T08:41:24+09:00 Subject: [ruby-talk:15221] Re: class << self Hans-Dieter Stich writes: > hi! > > what is the difference between > > Class A > class << self > def method1 > end > end > end > > and > > Class A > def A.method1 > end > end > > ??? > > ciao > h-d These two forms are equivalent and define the same singleton method A.method1. --Leo--