On Sat, Mar 01, 2008 at 09:06:05AM +0900, Matthew D Moss wrote:
> - DON'T obfuscate unnecessarily. We're looking for interesting Ruby tricks, 
> not utter confusion. A little obfuscation is okay, but a lot is to be 
> avoided.

I know this is a bit golfy, but I thought I'd try to only use strings that had
already been interned into Ruby.

  require 'rbconfig'
  bui = /^bui(.{2})$/
  $stdout << "#{{}.class}"[0,1] <<
   ("#{{}.methods}"[/c(\w{4})c/] && $1.reverse) <<
   (([0]*2).inspect[2,2]) <<
   Config::CONFIG.keys.grep(bui).first.gsub(bui,
     "#{Kernel.methods.grep(/^th/)[0][2,3].reverse}\\1") <<
   ObjectSpace._id2ref(338)

Here's a shorter one:

  puts IO.read($:[3]+"/drb/drb.rb")[/logger.log."(.{13})"/, 1]

_why