Method: Hash#copy

Defined in:
lib/enumerate_hash_values/core_extensions/hash.rb

#copyObject

Shortcut to perform a shallow copy of the hash to a new instance.



51
52
53
# File 'lib/enumerate_hash_values/core_extensions/hash.rb', line 51

def copy
  collect_values { |value| value }
end