Class: AsciiMath::AST::Text
- Defined in:
- lib/asciimath/ast.rb
Instance Attribute Summary
Attributes inherited from ValueNode
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(value) ⇒ Text
constructor
A new instance of Text.
- #to_s ⇒ Object
Methods inherited from ValueNode
Constructor Details
#initialize(value) ⇒ Text
Returns a new instance of Text.
326 327 328 |
# File 'lib/asciimath/ast.rb', line 326 def initialize(value) super(value.dup.freeze) end |
Instance Method Details
#to_s ⇒ Object
330 331 332 |
# File 'lib/asciimath/ast.rb', line 330 def to_s '"' + super + '"' end |