Saari Development

This blog is intended to be a log of my (Ali Rizvi's) professional ramblings as a software development engineer. I intend to add logs of my experience with different technologies, software, tech books/articles and related stuff from time to time. My intention is to have an archive for my personal use and public benefit.

Wednesday, February 22, 2006

Ruby: using irb and ri as a exploratory learning device


irb> Kernel.methods.each do |method| puts method; system "/usr/local/bin/ri --no-pager Kernel##{method}"; ch = STDIN.getc; break if (ch.chr == 'q') end

Once you enter this just keep hit enter until you want to quit, at that point hit 'q' and enter.

Still some kinks to be worked out but it is a start

Update:
Found this interesting link: http://www.rubygarden.org/ruby?Irb/TipsAndTricks on http://www.rubyweeklynews.org/

1 Comments:

Blogger Ali said...

Very crude and limited use utility.

That's what happen when you learn, experiment and rejoice non-success.

You need a lot of work to get some where.

3:17 PM  

Post a Comment

<< Home