Class: Plurimath::Html

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

Defined Under Namespace

Classes: Constants, Parse, Parser, Transform

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text) ⇒ Html

Returns a new instance of Html.



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

def initialize(text)
  @text = text
end

Instance Attribute Details

#textObject

Returns the value of attribute text.



5
6
7
# File 'lib/plurimath/html.rb', line 5

def text
  @text
end

Instance Method Details

#to_formulaObject



11
12
13
# File 'lib/plurimath/html.rb', line 11

def to_formula
  Parser.new(text).parse
end