Class: Undies::SourceStack

Inherits:
Array
  • Object
show all
Defined in:
lib/undies/source.rb

Instance Method Summary collapse

Constructor Details

#initialize(source) ⇒ SourceStack

a source stack is used to manage which sources and any deeply nested layouts they are in. initialize this object with a content source obj and get a stack where the the top source is the outer most layout and the bottom source is the source used to initialize the stack (the content source). naturally any sources in between are the intermediate layouts for the content source



131
132
133
# File 'lib/undies/source.rb', line 131

def initialize(source)
  super([source, source.layouts].flatten.compact)
end

Instance Method Details

#popObject



135
136
137
# File 'lib/undies/source.rb', line 135

def pop
  super
end