doodle dabbles

a little nerdery for everyone

Archive for the ‘irb’ tag

The Ruby Console’s help() command

without comments

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.

Read the rest of this entry »

Written by Ashish

September 1st, 2008 at 4:11 pm

Posted in Uncategorized

Tagged with , ,