Class: Plurimath::Latex

Inherits:
Object
  • Object
show all
Defined in:
lib/plurimath/latex.rb,
lib/plurimath/latex/parse.rb,
lib/plurimath/latex/parser.rb,
lib/plurimath/latex/constants.rb,
lib/plurimath/latex/transform.rb

Defined Under Namespace

Classes: Constants, Parse, Parser, Transform

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text) ⇒ Latex

Returns a new instance of Latex.



12
13
14
# File 'lib/plurimath/latex.rb', line 12

def initialize(text)
  @text = text
end

Instance Attribute Details

#textObject

Returns the value of attribute text.



10
11
12
# File 'lib/plurimath/latex.rb', line 10

def text
  @text
end

Instance Method Details

#to_formulaObject



16
17
18
# File 'lib/plurimath/latex.rb', line 16

def to_formula
  Parser.new(text).parse
end