Actions
Bug #12131
closedShould defining singleton_method_added call itself?
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
Description
This seems surprising:
obj = Object.new
def obj.singleton_method_added(n)
p n
end
def obj.new_singleton_method; end
outputs
:singleton_method_added
:new_singleton_method
Actions
Like0
Like0Like0