Class: Plurimath::Latex::Parser
- Inherits:
-
Object
- Object
- Plurimath::Latex::Parser
- Defined in:
- lib/plurimath/latex/parser.rb
Constant Summary collapse
- TEXT_REGEX =
%r(\\(?:mbox|text)\{[^\}]+\})
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text) ⇒ Parser
constructor
A new instance of Parser.
- #parse ⇒ Object
Constructor Details
#initialize(text) ⇒ Parser
Returns a new instance of Parser.
13 14 15 |
# File 'lib/plurimath/latex/parser.rb', line 13 def initialize(text) @text = pre_processing(text) end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
9 10 11 |
# File 'lib/plurimath/latex/parser.rb', line 9 def text @text end |