Skip to content

Instantly share code, notes, and snippets.

@naoto
Last active December 14, 2015 04:29
Show Gist options
  • Save naoto/5028348 to your computer and use it in GitHub Desktop.
Save naoto/5028348 to your computer and use it in GitHub Desktop.
ruby 2.0.0
#!/usr/bin/env ruby
def sample(hoge: 'arg1', fuga: 0)
puts "hoge => #{hoge}"
puts "fuga => #{fuga}"
end
sample(hoge: "XXX", fuga: "YYY")
#=> hoge => "XXX"
#=> fuga => "YYY"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment