Class: Sandals::Container
- Inherits:
-
Object
- Object
- Sandals::Container
- Includes:
- Styled
- Defined in:
- lib/sandals/view.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
readonly
Returns the value of attribute children.
Attributes included from Styled
Instance Method Summary collapse
-
#initialize(styles: {}) ⇒ Container
constructor
A new instance of Container.
Constructor Details
#initialize(styles: {}) ⇒ Container
Returns a new instance of Container.
219 220 221 222 |
# File 'lib/sandals/view.rb', line 219 def initialize(styles: {}) @children = [] initialize_styles(styles) end |
Instance Attribute Details
#children ⇒ Object (readonly)
Returns the value of attribute children.
217 218 219 |
# File 'lib/sandals/view.rb', line 217 def children @children end |