class ChefCLI::Policyfile::GitLockFetcher
def symbolize_keys(hash)
-
(Hash)
- Hash with only symbols as keys.
Parameters:
-
hash
(Hash
) -- Hash with symbols and/or strings as keys.
def symbolize_keys(hash) hash.inject({}) { |memo, (k, v)| memo[k.to_sym] = v; memo } end