Class: RD::MethodListItem::Term
- Includes:
- LabeledElement, TerminalElement
- Defined in:
- lib/rd2odt/rdtool/rd/methodlist.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Attributes inherited from Element
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
- #each_element {|_self| ... } ⇒ Object (also: #each)
-
#initialize(content = "") ⇒ Term
constructor
A new instance of Term.
Methods included from LabeledElement
Methods included from TerminalElement
Methods inherited from Element
Constructor Details
#initialize(content = "") ⇒ Term
Returns a new instance of Term.
38 39 40 |
# File 'lib/rd2odt/rdtool/rd/methodlist.rb', line 38 def initialize(content = "") @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
36 37 38 |
# File 'lib/rd2odt/rdtool/rd/methodlist.rb', line 36 def content @content end |
Instance Method Details
#accept(visitor) ⇒ Object
47 48 49 |
# File 'lib/rd2odt/rdtool/rd/methodlist.rb', line 47 def accept(visitor) visitor.visit_MethodListItemTerm(self) end |
#each_element {|_self| ... } ⇒ Object Also known as: each
42 43 44 |
# File 'lib/rd2odt/rdtool/rd/methodlist.rb', line 42 def each_element yield(self) end |