Class: MathML::Frac

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

Instance Attribute Summary

Attributes inherited from Element

#display_style

Instance Method Summary collapse

Methods inherited from Element

#as_display_style

Methods inherited from XMLElement

#pop

Constructor Details

#initialize(numerator, denominator) ⇒ Frac

Returns a new instance of Frac.



77
78
79
80
81
# File 'lib/math_ml/element.rb', line 77

def initialize(numerator, denominator)
	super("mfrac")
	self << numerator
	self << denominator
end