Class: RD::MethodListItem

Inherits:
ListItem show all
Includes:
ComplexListItem
Defined in:
lib/rd/methodlist.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, #each_block_in_description, #each_element, #inspect, #make_term, #set_term, #set_term_under_document_struct, #set_term_without_document_struct, #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

#initializeMethodListItem

Returns a new instance of MethodListItem.



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

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

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



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

def description
  @description
end

#termObject (readonly)

Returns the value of attribute term.



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

def term
  @term
end

Instance Method Details

#accept(visitor) ⇒ Object



24
25
26
# File 'lib/rd/methodlist.rb', line 24

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

#childrenObject



28
29
30
# File 'lib/rd/methodlist.rb', line 28

def children
  @description
end