This is my first post at ruby-talk
I’m a some year exprience of rubyist without deep understanding
Now I’m trying to understand more about meta programming.
I browsed other people’s sources and have a question.
What does (class << self; self; end) means ?
I did an experience like this.
p (class << self; self; end)
The output was
I think the latter( #Class:Cat ) means Class singleton object.
Moreover, from my understanding I’ve been thinking that the former also
means Class singleton object.
Could you please tell the difference between self and (class << self;
self; end) in the context ?
Toshi U. now @Tokyo, soon @Atlanta