Module | RR::ClassInstanceMethodDefined |
In: |
lib/rr/class_instance_method_defined.rb
|
# File lib/rr/class_instance_method_defined.rb, line 3 3: def class_instance_method_defined(klass, instance_method, include_super=true) 4: klass.instance_methods(include_super).detect {|method_name| method_name.to_sym == instance_method.to_sym} || 5: klass.protected_instance_methods(include_super).detect {|method_name| method_name.to_sym == instance_method.to_sym} || 6: klass.private_instance_methods(include_super).detect {|method_name| method_name.to_sym == instance_method.to_sym} 7: end