class Mathmas::Variable
Class for Symbol like x, y, etc.
Attributes
symbol[R]
Public Class Methods
new(symbol)
click to toggle source
# File lib/mathmas/core/symbol.rb, line 7 def initialize(symbol) @symbol = symbol end
Public Instance Methods
to_s()
click to toggle source
# File lib/mathmas/core/symbol.rb, line 11 def to_s @symbol.to_s end
to_tex()
click to toggle source
# File lib/mathmas/core/symbol.rb, line 15 def to_tex @symbol.to_s end