From: Charles Mills Date: 2005-02-07T03:35:12+09:00 Subject: Re: Ruby Interactive Shell 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