ImmutableArray is used to implement Array collections when reading node attributes.
ImmutableArray acts like an ordinary Array, except:
Methods that mutate the array are overridden to raise an error, making the collection more or less immutable.
Since this class stores values computed from a parent Chef::Node::Attribute’s values, it overrides all reader methods to detect staleness and raise an error if accessed when stale.
A list of methods that mutate Array. Each of these is overridden to raise an error, making this instances of this class more or less immutable.
# File lib/chef/node/immutable_collections.rb, line 95 def dup Array.new(map {|e| safe_dup(e)}) end
Generated with the Darkfish Rdoc Generator 2.