Class: Plurimath::Mathml

Inherits:
Object
  • Object
show all
Defined in:
lib/plurimath/mathml.rb,
lib/plurimath/mathml/parser.rb,
lib/plurimath/mathml/utility.rb,
lib/plurimath/mathml/constants.rb,
lib/plurimath/mathml/utility/empty_defined_methods.rb,
lib/plurimath/mathml/utility/formula_transformation.rb

Defined Under Namespace

Modules: Utility Classes: Constants, Parser

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text) ⇒ Mathml

Returns a new instance of Mathml.



9
10
11
# File 'lib/plurimath/mathml.rb', line 9

def initialize(text)
  @text = text
end

Instance Attribute Details

#textObject

Returns the value of attribute text.



7
8
9
# File 'lib/plurimath/mathml.rb', line 7

def text
  @text
end

Instance Method Details

#to_formulaObject



13
14
15
# File 'lib/plurimath/mathml.rb', line 13

def to_formula
  Parser.new(text).parse
end