Skip to content

Instantly share code, notes, and snippets.

@exts
Last active January 13, 2017 13:47
Show Gist options
  • Save exts/96858422e1f83cca6aa7a4e157a07f29 to your computer and use it in GitHub Desktop.
Save exts/96858422e1f83cca6aa7a4e157a07f29 to your computer and use it in GitHub Desktop.
def takes_hash(h)
puts h
end
takes_hash({"test" => "hash"})
# takes_hash {"test" => "hash"} # => Syntax error in t.cr:6: unexpected token: => takes_hash {"test" => "hash"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment