Skip to content

Instantly share code, notes, and snippets.

@zhengjia

zhengjia/splat.rb

Created Mar 20, 2012
Embed
What would you like to do?
def match(path, *rest)
puts path.inspect
puts rest.inspect
end
a=[:inspect]
match(*a, {:via => :get})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.