Class: Dedalus::LayerStack
Overview
it's like a gluon or something, not sure how to model in nuclear terms
Instance Attribute Summary collapse
-
#layers ⇒ Object
readonly
Returns the value of attribute layers.
Attributes inherited from Element
#background_color, #color, #height, #height_percent, #margin, #padding, #position, #width, #width_percent
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, #tiny_font, #view, #window
Constructor Details
#initialize(layers: []) ⇒ LayerStack
Returns a new instance of LayerStack.
120 121 122 |
# File 'lib/dedalus/elements.rb', line 120 def initialize(layers: []) @layers = [] end |
Instance Attribute Details
#layers ⇒ Object (readonly)
Returns the value of attribute layers.
118 119 120 |
# File 'lib/dedalus/elements.rb', line 118 def layers @layers end |
Instance Method Details
#push(layer_elements) ⇒ Object
124 125 126 |
# File 'lib/dedalus/elements.rb', line 124 def push(layer_elements) @layers.push(layer_elements) end |