Class: Dedalus::LayerStack
Instance Attribute Summary collapse
-
#layers ⇒ Object
Returns the value of attribute layers.
Attributes inherited from Element
#background_color, #color, #height, #height_percent, #margin, #offset, #padding, #position, #shown, #width, #width_percent, #z_order
Instance Method Summary collapse
-
#initialize(layers: []) ⇒ LayerStack
constructor
A new instance of LayerStack.
- #push(layer_elements) ⇒ Object
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
#layers ⇒ Object
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 |