Class: Ovec::TextNode
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text) ⇒ TextNode
constructor
A new instance of TextNode.
- #length ⇒ Object
- #to_tex ⇒ Object
Constructor Details
#initialize(text) ⇒ TextNode
Returns a new instance of TextNode.
89 90 91 |
# File 'lib/ovec/nodes.rb', line 89 def initialize(text) @text = text end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
101 102 103 |
# File 'lib/ovec/nodes.rb', line 101 def text @text end |
Instance Method Details
#length ⇒ Object
93 94 95 |
# File 'lib/ovec/nodes.rb', line 93 def length text.length end |
#to_tex ⇒ Object
97 98 99 |
# File 'lib/ovec/nodes.rb', line 97 def to_tex text end |