Class: MathML::Math
- Inherits:
-
XMLElement
- Object
- EimXML::Element
- XMLElement
- MathML::Math
- Defined in:
- lib/math_ml/element.rb
Instance Method Summary collapse
-
#initialize(display_style) ⇒ Math
constructor
A new instance of Math.
Methods inherited from XMLElement
Constructor Details
#initialize(display_style) ⇒ Math
Returns a new instance of Math.
32 33 34 35 |
# File 'lib/math_ml/element.rb', line 32 def initialize(display_style) super("math", "xmlns"=>"http://www.w3.org/1998/Math/MathML") self[:display] = display_style ? "block" : "inline" end |