B
Ben Tompkins
The semantics of
class X
...
class << self
def instance_method_for_class_object_named_X
...
end
end
end
is that an instance method is added (appended) to the current object X
== self by
the class definition that encloses the new method. Because we are
appending a new method to self, the arrows should point towards "self"
not "class."
nbits
class X
...
class << self
def instance_method_for_class_object_named_X
...
end
end
end
is that an instance method is added (appended) to the current object X
== self by
the class definition that encloses the new method. Because we are
appending a new method to self, the arrows should point towards "self"
not "class."
nbits