S
Sam Kong
Hi!
Some code first...
--------
class C
end
obj = C.new #<-- Question here.
--------
My question is where the C.new method is.
The class Class or C's singleton class?
According to PickAxe2, it seems that C.new is in Class.
However, according to Little Ruby book, it seems that C.new is in C's
metaclass.
Which is right and how can we confirm that?
TIA.
Sam
Some code first...
--------
class C
end
obj = C.new #<-- Question here.
--------
My question is where the C.new method is.
The class Class or C's singleton class?
According to PickAxe2, it seems that C.new is in Class.
However, according to Little Ruby book, it seems that C.new is in C's
metaclass.
Which is right and how can we confirm that?
TIA.
Sam