From: Joel VanderWerf Date: 2004-07-05T04:18:41+09:00 Subject: Re: irb gabriele renzi wrote: > il Fri, 2 Jul 2004 15:46:01 -0600, "Ara.T.Howard" > ha scritto:: > > >>is there a way dump executed commands to a file? >> >>-a > > > does this help? > http://www.rubygarden.org/ruby?Irb/TipsAndTricks Or you can put this in your .irbrc: def dump_history(file=nil) if file File.open(file, "w") do |f| f.puts IRB::ReadlineInputMethod::HISTORY.to_a end else puts IRB::ReadlineInputMethod::HISTORY.to_a end end