Project

General

Profile

Actions

Bug #11211

closed

defined(foo.bar) calls respond_to_missing? everytime

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

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

Description

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.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0