On Oct 28, 2006, at 9:00 AM, Bil Kleb wrote:

> Matthew Cox wrote:
>> Hi,
>
> Hi.
>
>> I'm learning Ruby from the pickaxe book and I'm using the IRB to try
>> out examples. I'd like to know if it is possible to save to disk the
>> IRB session so that when I come back I can load up a session to the
>> state it was in before. Is this possible?
>
> This comes up from time-to-time.  I don't know if
> there is a hands-down winner, but
>
>  http://www.google.com/search?q=saving+irb+session
>
> turns up at least two answers:
>
>  http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/68259
>  http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/11092

Even better, Ben Bleything showed off his IRb enhancements for this  
in a RubyConf 06 lightening talk.  They are quite smooth.

You can get Ben's code from his blog:

http://blog.bleything.net/articles/2006/10/21/shell-style-history-for- 
irb

James Edward Gray II