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
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs