Skip to content

Instantly share code, notes, and snippets.

@eqdw
Created April 21, 2011 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save eqdw/935266 to your computer and use it in GitHub Desktop.
Save eqdw/935266 to your computer and use it in GitHub Desktop.
An extension that stef should always include
module Stefanize
def method_missing(method_sym, *arguments, &block)
if method_sym.to_s =~ /^(.*)_to_me$/
send($1.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