Class: AsciiMath::AST::Text

Inherits:
ValueNode show all
Defined in:
lib/asciimath/ast.rb

Instance Attribute Summary

Attributes inherited from ValueNode

#value

Attributes inherited from Node

#parent

Instance Method Summary collapse

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_sObject



330
331
332
# File 'lib/asciimath/ast.rb', line 330

def to_s
  '"' + super + '"'
end