class Brainstem::DSL::Configuration::InheritableAppendSet

An Array-like object that provides `push`, `concat`, `each`, `empty?`, and `to_a` methods that act the combination of its own entries and those of a parent InheritableAppendSet, if present.

Public Class Methods

new(parent_array = nil) click to toggle source
# File lib/brainstem/dsl/configuration.rb, line 263
def initialize(parent_array = nil)
  @parent_array = parent_array || []
  @storage = []
end

Public Instance Methods

<<(item)
Alias for: push
concat(items) click to toggle source
# File lib/brainstem/dsl/configuration.rb, line 273
def concat(items)
  @storage.concat items
end
push(item) click to toggle source
# File lib/brainstem/dsl/configuration.rb, line 268
def push(item)
  @storage.push item
end
Also aliased as: <<
to_a() click to toggle source
# File lib/brainstem/dsl/configuration.rb, line 277
def to_a
  @parent_array.to_a + @storage
end