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/