Method: Chef::Node::ImmutableMash#dup

Defined in:
lib/chef/node/immutable_collections.rb

#dupObject

NOTE: #default and #default= are likely to be pretty confusing. For a regular ruby Hash, they control what value is returned for, e.g.,

hash[:no_such_key] #=> hash.default

Of course, ‘default’ has a specific meaning in Chef-land



179
180
181
# File 'lib/chef/node/immutable_collections.rb', line 179

def dup
  Mash.new(self)
end