From: Joel VanderWerf Date: 2007-03-13T01:54:12+09:00 Subject: Re: shutting irb up Matt Mower wrote: > On 11/03/07, Joel VanderWerf wrote: >> >> irb(main):028:0> IRB.conf[:PROMPT][ IRB.conf[:PROMPT_MODE] >> ][:RETURN].replace('') >> irb(main):029:0> 1+2 >> > > Is this bound to some specific version of Ruby/IRB because it doesn't seem > to be working for me either in .irbrc or IRB itself: > >>> IRB.conf[:PROMPT][ IRB.conf[:PROMPT_MODE] ][:RETURN].replace( "" ) > => "" >>> 2 + 3 > => 5 > > Alia:~/Projects/cominded/chitchat matt$ irb -v > irb 0.9.5(05/04/13) > > Alia:~/Projects/cominded/chitchat matt$ ruby -v > ruby 1.8.5 (2006-08-25) [i686-darwin8.8.2] Works for me with the same irb version as yours, and ruby-1.8.4 and also ruby-1.8.6-preview3, on ubuntu. Haven't tried 1.8.5 though. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407