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:
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.
Post a Comment
<< Home