Skip to content

Instantly share code, notes, and snippets.

@jeremywrowe
Created November 11, 2012 05:23
Show Gist options
  • Save jeremywrowe/4053818 to your computer and use it in GitHub Desktop.
Save jeremywrowe/4053818 to your computer and use it in GitHub Desktop.
keyword arguments ruby 2.0 with defaults
def something_fun(dump: "truck", tree: "hugger")
puts "#{dump} #{tree}"
end
something_fun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment