How to create Hash with string keys by default
Use hashrocket instead of colon :
h = { "a" => 123 }
#=> {"a"=>123}
Use hash rocket syntax:
h = { "a" => 123 }
#=> {"a"=>123}
h['a']
#=> 123
Use hashrocket instead of colon :
h = { "a" => 123 }
#=> {"a"=>123}
Use hash rocket syntax:
h = { "a" => 123 }
#=> {"a"=>123}
h['a']
#=> 123