Sha256: 7879ce43a49e409280ec554821e3ded7c26189f7c8ba8c19c98e4b383a54d761
Contents?: true
Size: 510 Bytes
Versions: 12
Compression:
Stored size: 510 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
12 entries across 12 versions & 1 rubygems