From: merch-redmine@... Date: 2019-07-23T17:36:34+00:00 Subject: [ruby-dev:50818] [Ruby master Bug#11212] defined?(foo()) ignores respond_to_missing? Issue #11212 has been updated by jeremyevans0 (Jeremy Evans). Status changed from Open to Closed Fixed by commit:a54da1c05058d9f873f28c317677c5393d7327c9. ---------------------------------------- Bug #11212: defined?(foo()) ignores respond_to_missing? https://bugs.ruby-lang.org/issues/11212#change-79899 * Author: ko1 (Koichi Sasada) * Status: Closed * Priority: Normal * Assignee: matz (Yukihiro Matsumoto) * Target version: * ruby -v: 2.3dev * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- ```ruby 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. -- https://bugs.ruby-lang.org/