Class: RD::DescListItem

Inherits:
ListItem show all
Includes:
ComplexListItem
Defined in:
lib/rd/desclist.rb

Defined Under Namespace

Classes: Term

Instance Attribute Summary collapse

Attributes inherited from ListItem

#content

Attributes included from NonterminalElement

#temporary_document_structure

Attributes inherited from Element

#parent

Instance Method Summary collapse

Methods included from ComplexListItem

#assign_term, #children, #each_block_in_description, #each_element, #inspect, #make_term, #set_term, #set_term_under_document_struct, #set_term_without_document_struct, #to_label

Methods inherited from ListItem

#children

Methods included from NonterminalElement

#add_child, #add_child_under_document_struct, #add_children, #add_children_under_document_struct, #add_children_without_document_struct, #build, #children, #each_child, #each_element, #make_child, #push_to_children, #under_temporary_document_structure

Methods inherited from Element

#inspect, #tree

Constructor Details

#initializeDescListItem

Returns a new instance of DescListItem.



19
20
21
22
23
# File 'lib/rd/desclist.rb', line 19

def initialize
  @term = nil
  @description = []
  @label = nil
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



17
18
19
# File 'lib/rd/desclist.rb', line 17

def description
  @description
end

#termObject (readonly)

Returns the value of attribute term.



16
17
18
# File 'lib/rd/desclist.rb', line 16

def term
  @term
end

Instance Method Details

#accept(visitor) ⇒ Object



25
26
27
# File 'lib/rd/desclist.rb', line 25

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