Class: Plurimath::Omml::Parser
- Inherits:
-
Object
- Object
- Plurimath::Omml::Parser
- Defined in:
- lib/plurimath/omml/parser.rb
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.
9 10 11 |
# File 'lib/plurimath/omml/parser.rb', line 9 def initialize(text) @text = text end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
7 8 9 |
# File 'lib/plurimath/omml/parser.rb', line 7 def text @text end |
Instance Method Details
#parse ⇒ Object
13 14 15 16 17 |
# File 'lib/plurimath/omml/parser.rb', line 13 def parse Translator.new.omml_to_plurimath( ::Omml.parse(text), ) end |