When is Ruby self refering to the Object and when is self refering to the Ruby class? Explanations with examples would be great. Not getting my head around this.
I could try to explain it myself, but I think Yehuda Katz does a better job than I would do:
Metaprogramming in Ruby: It’s All About the Self