Class: RD::ListItem
- Inherits:
-
BlockElement
- Object
- Element
- BlockElement
- RD::ListItem
- Includes:
- NonterminalElement
- Defined in:
- lib/rd/list.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Attributes included from NonterminalElement
Attributes inherited from Element
Instance Method Summary collapse
- #children ⇒ Object
-
#initialize ⇒ ListItem
constructor
A new instance of ListItem.
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 ⇒ ListItem
Returns a new instance of ListItem.
25 26 27 |
# File 'lib/rd/list.rb', line 25 def initialize @content = [] end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
23 24 25 |
# File 'lib/rd/list.rb', line 23 def content @content end |
Instance Method Details
#children ⇒ Object
31 32 33 |
# File 'lib/rd/list.rb', line 31 def children @content end |