Skip to content

Instantly share code, notes, and snippets.

@MittalPatel-BTC
Created June 30, 2019 10:45
Show Gist options
  • Save MittalPatel-BTC/52993fdab6ba350ba9ae5d51d73b1ef3 to your computer and use it in GitHub Desktop.
Save MittalPatel-BTC/52993fdab6ba350ba9ae5d51d73b1ef3 to your computer and use it in GitHub Desktop.
Ways of defining a hash
symbolic_hash = {a: 1, b: 2, c: 3}
string_hash = {"a" => 1, "b" => 2, "c" => 3}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment