Class: Plurimath::Latex
- Inherits:
-
Object
- Object
- Plurimath::Latex
- Defined in:
- lib/plurimath/latex.rb,
lib/plurimath/latex/parse.rb,
lib/plurimath/latex/parser.rb,
lib/plurimath/latex/utility.rb,
lib/plurimath/latex/constants.rb,
lib/plurimath/latex/transform.rb
Defined Under Namespace
Classes: Constants, Parse, Parser, Transform, Utility
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text) ⇒ Latex
constructor
A new instance of Latex.
- #to_formula ⇒ Object
Constructor Details
#initialize(text) ⇒ Latex
Returns a new instance of Latex.
13 14 15 |
# File 'lib/plurimath/latex.rb', line 13 def initialize(text) @text = text end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
11 12 13 |
# File 'lib/plurimath/latex.rb', line 11 def text @text end |
Instance Method Details
#to_formula ⇒ Object
17 18 19 |
# File 'lib/plurimath/latex.rb', line 17 def to_formula Parser.new(text).parse end |