Actions
Feature #6241
closedModule#method_defined? with inherited flag
Feature #6241:
Module#method_defined? with inherited flag
Description
=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
Files
Actions