Class: RD::List
- Inherits:
-
BlockElement
- Object
- Element
- BlockElement
- RD::List
- Includes:
- NonterminalElement
- Defined in:
- lib/rd/list.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#items ⇒ Object
readonly
Returns the value of attribute items.
Attributes included from NonterminalElement
Attributes inherited from Element
Instance Method Summary collapse
- #children ⇒ Object
-
#initialize ⇒ List
constructor
A new instance of List.
Methods included from NonterminalElement
#add_child, #add_child_under_document_struct, #add_children, #add_children_under_document_struct, #add_children_without_document_struct, #build, #each_child, #each_element, #make_child, #push_to_children, #under_temporary_document_structure
Methods inherited from Element
Constructor Details
#initialize ⇒ List
Returns a new instance of List.
9 10 11 |
# File 'lib/rd/list.rb', line 9 def initialize @items = [] end |
Instance Attribute Details
#items ⇒ Object (readonly)
Returns the value of attribute items.
7 8 9 |
# File 'lib/rd/list.rb', line 7 def items @items end |
Instance Method Details
#children ⇒ Object
15 16 17 |
# File 'lib/rd/list.rb', line 15 def children @items end |