Displaying 1 result from an estimated 1 matches for "method_chain".
2011 May 13
4
unexpected results when extending methods to class Class and class Object
...ects are part of the blueprint Hello class.
That above is the simple distinction. But you must realize that there is
both a class Class and a class Object that can be extended. Let''s extend
Class and Object:
class Class
def dual_accessor(*attributes)
end
end
class Object
def try_safe(method_chain)
self.send_method_chain(method_chain)
end
end
When I first look at the above, my understanding is since a class can
have a class (static) method, you can specify them as being independent
of the object instances of the class: def self.hey end. Hence, those
methods will always refer directly to...