MathML::String

Public Class Methods

mathml_latex_parser() click to toggle source
    # File lib/math_ml/string.rb, line 14
14:                 def self.mathml_latex_parser
15:                         @@mathml_latex_parser = MathML::LaTeX::Parser.new unless @@mathml_latex_parser
16:                         @@mathml_latex_parser
17:                 end
mathml_latex_parser=(mlp) click to toggle source
    # File lib/math_ml/string.rb, line 19
19:                 def self.mathml_latex_parser=(mlp)
20:                         raise TypeError unless mlp.is_a?(MathML::LaTeX::Parser) || mlp==nil
21:                         @@mathml_latex_parser = mlp
22:                 end

Public Instance Methods

to_mathml(displaystyle=false) click to toggle source
    # File lib/math_ml/string.rb, line 24
24:                 def to_mathml(displaystyle=false)
25:                         MathML::String.mathml_latex_parser.parse(self, displaystyle)
26:                 end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.