Slightly off-topic for ruby methods / golf techniques but what about compiling a version of Ruby just for golfing: http://rbjl.net/34-do-you-know-the-official-ruby-interpreter-goruby