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