Let's say I want to check if a method of an object is an instance method or a singleton method, what is the best way to do it?
object.singleton_methods.include? :the_method
Let's say I want to check if a method of an object is an instance method or a singleton method, what is the best way to do it?
object.singleton_methods.include? :the_method