Class: Plurimath::Mathml

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

Defined Under Namespace

Classes: Constants, Parser, Transform

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text) ⇒ Mathml

Returns a new instance of Mathml.



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

def initialize(text)
  @text = text
end

Instance Attribute Details

#textObject

Returns the value of attribute text.



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

def text
  @text
end

Instance Method Details

#to_formulaObject



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

def to_formula
  Parser.new(text).parse
end