Class: MathML::Math

Inherits:
XMLElement show all
Defined in:
lib/math_ml/element.rb

Instance Method Summary collapse

Methods inherited from XMLElement

#pop

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