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, #color, #height, #height_percent, #margin, #offset, #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, #record?, #tiny_font, #view, #window
Constructor Details
#initialize(elements, freeform: false) ⇒ Layer
Returns a new instance of Layer.
106 107 108 109 |
# File 'lib/dedalus/elements.rb', line 106 def initialize(elements, freeform: false) @elements = elements @freeform = freeform end |
Instance Method Details
#freeform? ⇒ Boolean
115 116 117 |
# File 'lib/dedalus/elements.rb', line 115 def freeform? @freeform == true end |
#show ⇒ Object
111 112 113 |
# File 'lib/dedalus/elements.rb', line 111 def show @elements end |