Array
AttrArray is identical to Array, except that it keeps a reference to the "root" (Chef::Node::Attribute) object, and will trigger a cache invalidation on that object when mutated.
# File lib/chef/node/attribute_collections.rb, line 74 def initialize(root, data) @root = root super(data) end
# File lib/chef/node/attribute_collections.rb, line 86 def dup Array.new(map {|e| safe_dup(e)}) end
For elements like Fixnums, true, nil…
# File lib/chef/node/attribute_collections.rb, line 80 def safe_dup(e) e.dup rescue TypeError e end
[Validate]
Generated with the Darkfish Rdoc Generator 2.