Project

General

Profile

Actions

Bug #11212

closed

defined?(foo()) ignores respond_to_missing?

Added by ko1 (Koichi Sasada) almost 9 years ago. Updated over 4 years ago.

Status:
Closed
Target version:
-
[ruby-dev:49012]

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.

Updated by jeremyevans0 (Jeremy Evans) over 4 years ago

  • Status changed from Open to Closed
Actions

Also available in: Atom PDF

Like0
Like0