Class: Dedalus::LayerStack

Inherits:
Element
  • Object
show all
Defined in:
lib/dedalus/elements.rb

Instance Attribute Summary collapse

Attributes inherited from Element

#background_color, #color, #height, #height_percent, #margin, #offset, #padding, #position, #shown, #width, #width_percent, #z_order

Instance Method Summary collapse

Methods inherited from Element

#big_font, #code_font, #draw_bounding_box, #font, #huge_font, #record?, #tiny_font, #view, #window

Constructor Details

#initialize(layers: []) ⇒ LayerStack

Returns a new instance of LayerStack.



123
124
125
# File 'lib/dedalus/elements.rb', line 123

def initialize(layers: [])
  @layers = []
end

Instance Attribute Details

#layersObject

Returns the value of attribute layers.



121
122
123
# File 'lib/dedalus/elements.rb', line 121

def layers
  @layers
end

Instance Method Details

#push(layer_elements) ⇒ Object



127
128
129
# File 'lib/dedalus/elements.rb', line 127

def push(layer_elements)
  @layers.push(layer_elements)
end