I'm in the middle of Why's Poignent guide, and this one has me
stumped. Let's say MyClass exists. I want to add to it. So far, all
the examples have done:
Now he adds:
class << MyClass
He states the difference is the << operator allows you to alter the
definition of an object. Isn't that what I'm doing in the first
example as well? Won't my new_method be added to the class regardless?
He also states:
When you see class << obj, believe in your heart, I'm adding directly
to the definition of obj.
I'm failing to see what the practical difference is...