Skip to content

Instantly share code, notes, and snippets.

@jeroenr
Created July 19, 2012 08:59
Show Gist options
  • Save jeroenr/3141735 to your computer and use it in GitHub Desktop.
Save jeroenr/3141735 to your computer and use it in GitHub Desktop.
Wtf Ruby
def f(a = "", b = {}, c = "", d = "")
puts "a=#{a}"
puts "b=#{b}"
puts "c=#{c}"
puts "d=#{d}"
end
f(c: "c", d: "d")
a={:c=>"c", :d=>"d"}
b={}
c=
d=
=> nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment