From: jenjhiz Date: 2005-02-07T14:15:10+09:00 Subject: Re: Ruby Interactive Shell Thanks for the lead. However, I can't find an .irbrc file anywhere in my machine (Windows XP). Where is it located? Thanks, gk Charles Mills wrote: > Jenjhiz wrote: > > Hello, > > I'm looking for a Ruby interactive shell where I can paste snippet of > > codes (rather than typing them in). eval.rb doesn't do it (or I > haven't > > found a way to make it do it). > > Thanks! > > gk > > There is an answer to your question at the bottom of this page: > http://rubygarden.org/ruby?Irb/TipsAndTricks > > > If you add this to your .irbrc file: > IRB.conf[:PROMPT][:XMP][:RETURN] = "\# => %s\n" > > and start with irb --prompt xmp you'll have a great session for copying > and pasting code. > > > -Charlie