Hans-Dieter Stich <hdstich / commplex-media.de> 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--