Skip to content

Instantly share code, notes, and snippets.

View mremolt's full-sized avatar

Marc Remolt mremolt

  • ALTEN GmbH
  • Nürnberg
View GitHub Profile
#require 'rubygems'
require 'pp'
#require 'ap' # Awesome Print
class Object
# expects [ [ symbol, *args ], ... ]
def recursive_send(*args)
args.inject(self) { |obj, m| obj.send(m.shift, *m) }
end
end