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.
10 11 12 |
# File 'lib/plurimath/omml/parser.rb', line 10 def initialize(text) @text = CGI.unescape(text) end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
8 9 10 |
# File 'lib/plurimath/omml/parser.rb', line 8 def text @text end |