class Hash
def deep_symbolize_keys
Experimental RBS support (using type sampling data from the type_fusion
project).
def deep_symbolize_keys: () -> Hash
This signature was generated using 37 samples from 1 application.
hash.deep_symbolize_keys
hash = { 'person' => { 'name' => 'Rob', 'age' => '28' } }
and from all nested hashes and arrays.
they respond to +to_sym+. This includes the keys from the root hash
Returns a new hash with all keys converted to symbols, as long as
def deep_symbolize_keys deep_transform_keys { |key| key.to_sym rescue key } end