Parent

Methods

Included Modules

Files

Class/Module Index [+]

Quicksearch

Chef::Node::ImmutableArray

ImmutableArray

ImmutableArray is used to implement Array collections when reading node attributes.

ImmutableArray acts like an ordinary Array, except:

Constants

DISALLOWED_MUTATOR_METHODS

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.

Public Class Methods

new(array_data) click to toggle source
# File lib/chef/node/immutable_collections.rb, line 69
def initialize(array_data)
  array_data.each do |value|
    internal_push(immutablize(value))
  end
end

Public Instance Methods

dup() click to toggle source
# File lib/chef/node/immutable_collections.rb, line 88
def dup
  Array.new(map {|e| e.dup })
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.