How to create Hash with string keys by default September 5, 2023 by Tarik Use hash rocket syntax: h = { "a" => 123 } #=> {"a"=>123} h['a'] #=> 123