Class: RD::DescListItem::Term

Inherits:
Element
  • Object
show all
Includes:
LabeledElement, NonterminalElement
Defined in:
lib/rd/desclist.rb

Instance Attribute Summary

Attributes included from NonterminalElement

#temporary_document_structure

Attributes inherited from Element

#parent

Instance Method Summary collapse

Methods included from LabeledElement

#to_label

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

#inspect, #tree

Constructor Details

#initializeTerm

Returns a new instance of Term.



33
34
35
# File 'lib/rd/desclist.rb', line 33

def initialize
	@content = []
end

Instance Method Details

#accept(visitor) ⇒ Object



46
47
48
# File 'lib/rd/desclist.rb', line 46

def accept(visitor)
	visitor.visit_DescListItemTerm(self)
end

#childrenObject



50
51
52
# File 'lib/rd/desclist.rb', line 50

def children
	@content
end