Skip to content

Instantly share code, notes, and snippets.

@kohsuke
Created March 25, 2011 02:09
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 kohsuke/886239 to your computer and use it in GitHub Desktop.
Save kohsuke/886239 to your computer and use it in GitHub Desktop.
<%
# TODO: define a class with missing method receiver
class Wrapper
def method_missing(name,*args)
"#{name} #{args.inspect}"
end
end
%>
<%= Wrapper.new().foo(:name=>"name", :bar=>5) %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment