From: "nobu (Nobuyoshi Nakada)" <nobu@...>
Date: 2012-04-01T09:01:51+09:00
Subject: [ruby-dev:45483] [ruby-trunk - Bug #6241][Assigned] Module#method_defined? with inherited flag


Issue #6241 has been reported by nobu (Nobuyoshi Nakada).

----------------------------------------
Bug #6241: Module#method_defined? with inherited flag
https://bugs.ruby-lang.org/issues/6241

Author: nobu (Nobuyoshi Nakada)
Status: Assigned
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: core
Target version: 2.0.0
ruby -v: 35201


=begin
Currently (({Module#method_defined?})) does not accept "(({inherited}))" flags as (({Module#instance_methods})) and others.
To tell if a method is defined at an exact class/module, we have to use bad idiom:

  mod.instance_methods(false).include?(:foo)

So I propose to let (({method_defined?})) and etc accept the flag.
=end



-- 
http://bugs.ruby-lang.org/