B
Bertram Scharpf
Hi,
I want to understand thoroughly how singleton objects are
implemented. I try this:
class C ; end
puts C.inspect # => C
puts class <<C ; self ; end.inspect # => #<Class:C>
Can someone give me a hint what's the difference between the
both objects inspected? Thanks very much in advance.
Bertram
I want to understand thoroughly how singleton objects are
implemented. I try this:
class C ; end
puts C.inspect # => C
puts class <<C ; self ; end.inspect # => #<Class:C>
Can someone give me a hint what's the difference between the
both objects inspected? Thanks very much in advance.
Bertram