Method: Hash.new_empty

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

.new_empty(options = {}) ⇒ Object



85
86
87
88
89
# File 'lib/enumerate_hash_values/core_extensions/hash.rb', line 85

def new_empty(options = {})
  new_hash = allocate
  new_hash.copy_traits!(options[:traits_from]) if options[:traits_from]
  new_hash
end