[#49078] DevelopersMeeting20150728Japan — SASADA Koichi <ko1@...>
Hi,
5 messages
2015/06/12
[ruby-dev:49159] [Ruby trunk - Bug #11211] defined(foo.bar) calls respond_to_missing? everytime
From:
usa@...
Date:
2015-06-30 04:05:15 UTC
List:
ruby-dev #49159
Issue #11211 has been updated by Usaku NAKAMURA.
Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: WONTFIX, 2.1: REQUIRED, 2.2: REQUIRED
----------------------------------------
Bug #11211: defined(foo.bar) calls respond_to_missing? everytime
https://bugs.ruby-lang.org/issues/11211#change-53192
* Author: Koichi Sasada
* Status: Closed
* Priority: Normal
* Assignee: Yukihiro Matsumoto
* ruby -v: 2.3dev
* Backport: 2.0.0: WONTFIX, 2.1: REQUIRED, 2.2: REQUIRED
----------------------------------------
```ruby
class C
def respond_to_missing? *args
p args
end
def existing_method; end
end
p defined?(C.new.existing_method)
```
This script prints
```
[:existing_method, false]
"method"
```
even though exsiting_method is defiend.
It should be a bug.
--
https://bugs.ruby-lang.org/