Archive for the ‘irb’ tag
The Ruby Console’s help() command
I am writing this blog post offline on my flight to Austin via Atlanta. I am working on a Rails application and I needed to look at the different methods available for ruby Arrays. And I didn’t take an offline copy of the Rails or Ruby documentation. But I thought that perhaps Ruby would have something similar to Python’s dir() command, which is essentially a function in the python console that returns a list of possible functions and meta information for a given type.