Class: MathML::Math

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

Instance Method Summary collapse

Methods inherited from XMLElement

#pop

Constructor Details

#initialize(display_style) ⇒ Math

Returns a new instance of Math.



63
64
65
66
# File 'lib/math_ml.rb', line 63

def initialize(display_style)
	super("math", "xmlns"=>"http://www.w3.org/1998/Math/MathML")
	self[:display] = display_style ? "block" : "inline"
end