Class: Plurimath::Omml

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

Defined Under Namespace

Classes: Parser, Transform

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text) ⇒ Omml

Returns a new instance of Omml.



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

def initialize(text)
  @text = text
end

Instance Attribute Details

#textObject

Returns the value of attribute text.



8
9
10
# File 'lib/plurimath/omml.rb', line 8

def text
  @text
end

Instance Method Details

#to_formulaObject



14
15
16
# File 'lib/plurimath/omml.rb', line 14

def to_formula
  Parser.new(text).parse
end