From: "matz (Yukihiro Matsumoto)" Date: 2012-10-31T02:19:01+09:00 Subject: [ruby-dev:46323] [ruby-trunk - Feature #6241][Rejected] Module#method_defined? with inherited flag Issue #6241 has been updated by matz (Yukihiro Matsumoto). Status changed from Assigned to Rejected Target version changed from 2.0.0 to next minor Tomas has a point. We cannot accept the original idea. So I reject this proposal. Try again. In general I am not a big fun of inherited flag, since most inheritance works rather as composition in Ruby. Matz. ---------------------------------------- Feature #6241: Module#method_defined? with inherited flag https://bugs.ruby-lang.org/issues/6241#change-32034 Author: nobu (Nobuyoshi Nakada) Status: Rejected Priority: Normal Assignee: matz (Yukihiro Matsumoto) Category: core Target version: next minor =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/