[#49078] DevelopersMeeting20150728Japan — SASADA Koichi <ko1@...>
Hi,
5 messages
2015/06/12
[ruby-dev:49011] [Ruby trunk - Bug #11211] [Open] defined(foo.bar) calls respond_to_missing? everytime
From:
ko1@...
Date:
2015-06-02 19:18:56 UTC
List:
ruby-dev #49011
Issue #11211 has been reported by Koichi Sasada.
----------------------------------------
Bug #11211: defined(foo.bar) calls respond_to_missing? everytime
https://bugs.ruby-lang.org/issues/11211
* Author: Koichi Sasada
* Status: Open
* Priority: Normal
* Assignee: Yukihiro Matsumoto
* ruby -v: 2.3dev
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
```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/