Actions
Bug #4889
closedmethods defined using define_singleton_method in Array.each loop report wrong __method__
Description
--CODE--
class A
[:foo,:bar].each do |a|
define_singleton_method(a) do
puts method
end
end
nil
end
A.foo
A.bar
exit
--EXPECTED-RESULT--
foo
bar
--ACTUAL-RESULT--
bar
bar
Actions
Like0
Like0