Hi, On Thursday 08 February 2007 21:49, Carl Lerche wrote: > Hello, > > I'm just curious what your favorite bit of ruby code is? Do you have > any small bits, methods, classes, or anything else, that just make you > say "Wow, that is sweet!" > I'd like to see some of them! require 'irb' module IRB def IRB.start_in_binding(b) setup(nil) irb = IRB::Irb.new(WorkSpace.new(b)) @CONF[:MAIN_CONTEXT] = irb.context catch(:IRB_EXIT) { irb.eval_input } end end (taken from http://rubyurl.com/K4P) -- pub 1024D/8D2787EF 723C 7CA3 3C19 2ACE 6E20 9CC1 9956 EB3C 8D27 87EF