Skip to content

Instantly share code, notes, and snippets.

@nirname
Created April 19, 2013 12:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nirname/5419973 to your computer and use it in GitHub Desktop.
Save nirname/5419973 to your computer and use it in GitHub Desktop.
Delegates all method to target
def method_missing(method_name, *arguments, &block)
return target.send(method_name, *arguments, &block) if target.respond_to? method_name
super
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment