Class: RD::DescListItem
- Inherits:
-
ListItem
- Object
- Element
- BlockElement
- ListItem
- RD::DescListItem
- Includes:
- ComplexListItem
- Defined in:
- lib/rd/desclist.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
-
#initialize ⇒ DescListItem
constructor
A new instance of DescListItem.
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
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
Constructor Details
#initialize ⇒ DescListItem
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
#description ⇒ Object (readonly)
Returns the value of attribute description.
17 18 19 |
# File 'lib/rd/desclist.rb', line 17 def description @description end |
#term ⇒ Object (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 |