hello!
I wonder why the new send! (and __send!) call private methods, but not
protected methods:
class Foo
protected
def protected
'We can call protected methods.'
end
private
def private
'We can call private methods.'
end
end
Foo.new.send! :private # => "We can call private methods."
Foo.new.send! :protected # => NoMethodError (protected method called)
Is this intended? I always thought that the ability to call private
methods implies the ability to call protected methods.
Also: Is it intended that Delegators don't delegate protected and
private methods?
[murphy]