From: ko1@... Date: 2015-06-02T19:18:56+00:00 Subject: [ruby-dev:49011] [Ruby trunk - Bug #11211] [Open] defined(foo.bar) calls respond_to_missing? everytime 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/