Class: RD::DescListItem::Term
- Includes:
- LabeledElement, NonterminalElement
- Defined in:
- lib/rd2odt/rdtool/rd/desclist.rb
Instance Attribute Summary
Attributes included from NonterminalElement
Attributes inherited from Element
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
- #children ⇒ Object
-
#initialize ⇒ Term
constructor
A new instance of Term.
Methods included from LabeledElement
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 ⇒ Term
Returns a new instance of Term.
33 34 35 |
# File 'lib/rd2odt/rdtool/rd/desclist.rb', line 33 def initialize @content = [] end |
Instance Method Details
#accept(visitor) ⇒ Object
46 47 48 |
# File 'lib/rd2odt/rdtool/rd/desclist.rb', line 46 def accept(visitor) visitor.visit_DescListItemTerm(self) end |
#children ⇒ Object
50 51 52 |
# File 'lib/rd2odt/rdtool/rd/desclist.rb', line 50 def children @content end |