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 <snip> 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. </snip> -Charlie