class Arboretum::DocTree::Elements::CounterElement
A TextElement
that holds a reference to an incrementer within the tree CounterElements have no tags nor attributes and are only meant to represent document content
Public Class Methods
new(incrementer)
click to toggle source
Calls superclass method
Arboretum::DocTree::Elements::TextElement::new
# File lib/arboretum/doctree.rb, line 1303 def initialize(incrementer) super() @incrementer = incrementer end
Public Instance Methods
copy()
click to toggle source
CounterElement
deep copy method
# File lib/arboretum/doctree.rb, line 1309 def copy CounterElement.new(@incrementer) end
text()
click to toggle source
The text representation of this element is the value of the referenced incrementere
# File lib/arboretum/doctree.rb, line 1314 def text @incrementer.value.to_s end