Class: RD::MethodListItem
- Inherits:
-
ListItem
- Object
- Element
- BlockElement
- ListItem
- RD::MethodListItem
- Includes:
- ComplexListItem
- Defined in:
- lib/rd/methodlist.rb
Defined Under Namespace
Classes: Term
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#term ⇒ Object
readonly
Returns the value of attribute term.
Attributes inherited from ListItem
Attributes included from NonterminalElement
Attributes inherited from Element
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
- #children ⇒ Object
-
#initialize ⇒ MethodListItem
constructor
A new instance of MethodListItem.
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
Constructor Details
#initialize ⇒ MethodListItem
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
#description ⇒ Object (readonly)
Returns the value of attribute description.
17 18 19 |
# File 'lib/rd/methodlist.rb', line 17 def description @description end |
#term ⇒ Object (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 |
#children ⇒ Object
28 29 30 |
# File 'lib/rd/methodlist.rb', line 28 def children @description end |