What is the best way to check if a method is a singleton method or an instance 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

2012/10/12 John M. [email protected]


Piantanida, Ignacio Julin