Class: Polites::Block::List
- Inherits:
-
Polites::Block
- Object
- Node
- Polites::Block
- Polites::Block::List
- Defined in:
- lib/polites/block/list.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#level ⇒ Object
readonly
Returns the value of attribute level.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(children, level) ⇒ List
constructor
A new instance of List.
Methods inherited from Polites::Block
Methods inherited from Node
Constructor Details
#initialize(children, level) ⇒ List
Returns a new instance of List.
9 10 11 12 |
# File 'lib/polites/block/list.rb', line 9 def initialize(children, level) super(children) @level = level end |
Instance Attribute Details
#level ⇒ Object (readonly)
Returns the value of attribute level.
7 8 9 |
# File 'lib/polites/block/list.rb', line 7 def level @level end |