Class: Layouter::Element
- Inherits:
-
Object
- Object
- Layouter::Element
- Defined in:
- lib/layouter/element.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#calculated_height ⇒ Object
readonly
Returns the value of attribute calculated_height.
-
#calculated_width ⇒ Object
readonly
Returns the value of attribute calculated_width.
Instance Method Summary collapse
-
#initialize ⇒ Element
constructor
A new instance of Element.
- #layout? ⇒ Boolean
Constructor Details
#initialize ⇒ Element
Returns a new instance of Element.
6 7 8 |
# File 'lib/layouter/element.rb', line 6 def initialize @calculated_width = @calculated_height = nil end |
Instance Attribute Details
#calculated_height ⇒ Object (readonly)
Returns the value of attribute calculated_height.
4 5 6 |
# File 'lib/layouter/element.rb', line 4 def calculated_height @calculated_height end |
#calculated_width ⇒ Object (readonly)
Returns the value of attribute calculated_width.
4 5 6 |
# File 'lib/layouter/element.rb', line 4 def calculated_width @calculated_width end |
Instance Method Details
#layout? ⇒ Boolean
19 20 21 |
# File 'lib/layouter/element.rb', line 19 def layout? !!@calculated_width && !!@calculated_height end |