module Artifactory::Util
def rename_keys(options, map = {})
-
(Hash)
-
Parameters:
-
map
(Hash
) -- -
options
(Hash
) --
Other tags:
- Example: Rename the given keys -
def rename_keys(options, map = {}) Hash[options.map { |k, v| [map[k] || k, v] }] end