hashmap extract ruby code example
Example 1: ruby assign value to hash
grades = Hash.new
grades["Dorothy Doe"] = 9
Example 2: how to access hash value ruby
my_hash["key"] #=> "value"
grades = Hash.new
grades["Dorothy Doe"] = 9
my_hash["key"] #=> "value"