Friday, February 22, 2008

Helpful Methods for Ruby Debugging

Just something which may help you when trying to figure out what Ruby object you're dealing with:
object.methods   #-> returns all the available methods
object.inspect #-> returns information about the object
object.ancestors #-> where the ruby object inherits from


Post a comment