Sha256: 43ea90510f66679efa9a1b44aa6f8c416d59adc6fb40983eacc5da137af9742f
Contents?: true
Size: 509 Bytes
Versions: 34
Compression:
Stored size: 509 Bytes
Contents
module RR module ClassInstanceMethodDefined def class_instance_method_defined(klass, instance_method, include_super=true) klass.instance_methods(include_super).detect {|method_name| method_name.to_sym == instance_method.to_sym} || klass.protected_instance_methods(include_super).detect {|method_name| method_name.to_sym == instance_method.to_sym} || klass.private_instance_methods(include_super).detect {|method_name| method_name.to_sym == instance_method.to_sym} end end end
Version data entries
34 entries across 30 versions & 5 rubygems