class Undies::SourceStack

Public Class Methods

new(source) click to toggle source

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

Calls superclass method
# File lib/undies/source.rb, line 131
def initialize(source)
  super([source, source.layouts].flatten.compact)
end

Public Instance Methods

pop() click to toggle source
Calls superclass method
# File lib/undies/source.rb, line 135
def pop
  super
end