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

Found this interesting link: on

One Response
  1. February 22, 2006