Class: Dedalus::Layer
Overview
layer is an abstract element... maybe should also pull out rows and columns? could cleanup traversal impl, and will be clearer ultimately
Instance Attribute Summary
Attributes inherited from Element
#background_color, #height, #height_percent, #margin, #padding, #position, #width, #width_percent
Instance Method Summary collapse
- #freeform? ⇒ Boolean
-
#initialize(elements, freeform: false) ⇒ Layer
constructor
A new instance of Layer.
- #show ⇒ Object
Methods inherited from Element
#big_font, #code_font, #draw_bounding_box, #font, #huge_font, #tiny_font, #view, #window
Constructor Details
#initialize(elements, freeform: false) ⇒ Layer
Returns a new instance of Layer.
94 95 96 97 |
# File 'lib/dedalus/elements.rb', line 94 def initialize(elements, freeform: false) @elements = elements @freeform = freeform end |
Instance Method Details
#freeform? ⇒ Boolean
103 104 105 |
# File 'lib/dedalus/elements.rb', line 103 def freeform? @freeform == true end |
#show ⇒ Object
99 100 101 |
# File 'lib/dedalus/elements.rb', line 99 def show @elements end |