Skip to content

Instantly share code, notes, and snippets.

@sivabudh
Created May 2, 2013 14:02
Show Gist options
  • Save sivabudh/5502391 to your computer and use it in GitHub Desktop.
Save sivabudh/5502391 to your computer and use it in GitHub Desktop.
Comparing Java & Ruby Hashmap
// Creating a HashMap in Java
Map<String, String> someMap = new HashMap<String, String>();
someMap.put("base_uri", "http://localhost:3000/users");
// Creating a hash map in Ruby
someMap = {
"base_uri": "http://localhost:3000/users"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment