Actions
Bug #11212
closeddefined?(foo()) ignores respond_to_missing?
Description
class C
def respond_to_missing? *args
true
end
def test
p defined?(non_exist_method())
end
end
C.new.test
This script prints only nil
. It ignores respond_to_missing?
.
It should be a bug.
Actions
Like0
Like0