Actions
Bug #6832
closedModule#instance_method and Module#method_defined? act inconsistently w.r.t #respond_to_missing?
Description
It's awesome that #respond_to_missing? allows Object#method to work for messages handled by #method_missing. However, I was surprised to discover that Module#instance_method and Module#method_defined? don't similarly take #respond_to_missing? into account. It seems very inconsistent.
Here's the behavior I'm seeing:
https://gist.github.com/3255162
In this example, I would expect Foo#method_defined?(:foo_bar) to return true, and I would expect Foo#instance_method(:foo_bar) to return an UnboundMethod that, when bound to a Foo instance, would use #method_missing to perform the method.
Actions
Like0
Like0Like0Like0Like0Like0