class ChefCLI::Policyfile::GitLockFetcher

def symbolize_keys(hash)

Returns:
  • (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