Skip to content

Instantly share code, notes, and snippets.

@burke
Forked from stefanpenner/Yehudalize.rb
Created April 21, 2011 19:15
Show Gist options
  • Save burke/935274 to your computer and use it in GitHub Desktop.
Save burke/935274 to your computer and use it in GitHub Desktop.
An extension that stef should always include
module Yehudalize
def method_missing(method_sym, *arguments, &block)
if method_sym.to_s =~ /^(omg_)?(.*)_to_me$/
send($2.to_sym, *arguments, &block)
else
super
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment