Trans schrieb:
> Craggy. It's even worse than that! If I delegate via the singelton of
> main then:
> 
>   class << self
>     def x; "x"; end
>   end
> 
>   class C
>     def q; x; end
>   end
> 
>   C.new.q
>   => NameError: undefined local variable or method `x' for
> #<C:0xb7cfffc4>
> 
> (*frustrated*) It's not the same as defining at the top level.

Tom, defining a method at the top level is the same as defining a 
private method of Object:

   def m
   end

is the same as

   class Object
     private
     def m
     end
   end

What are you trying to do?

Regards,
Pit