Class: Iora::Models::MathML

Inherits:
Element
  • Object
show all
Defined in:
lib/iora/models/mathml.rb

Overview

TODO:

Add MathML#to_tex using XSLT transform

The MathML class represents the top-level element of MathML, an element returned by the Wolfram Alpha API when results include mathematical content and when MathML is specifically requested.

MathML#to_xml will produce a string of MathML suitable for direct inclusion in a web page or for rendering to an image.

Instance Attribute Summary

Attributes inherited from Element

#element

Method Summary

Methods inherited from Element

#initialize, #to_xml

Methods included from Associations::HasOne

#has_one

Methods included from Associations::Helpers

#parse_element, #tag_for

Methods included from Associations::HasMany

#has_many

Methods included from Associations::HasAttribute

#has_attribute

Constructor Details

This class inherits a constructor from Iora::Models::Element