Class: Mathemagical::Frac
- Defined in:
- lib/mathemagical/element.rb
Instance Attribute Summary
Attributes inherited from Element
#attributes, #children, #display_style, #name
Instance Method Summary collapse
-
#initialize(numerator, denominator) ⇒ Frac
constructor
A new instance of Frac.
Methods inherited from Element
#<<, #[], #[]=, #as_display_style, #build_attributes_string, #child_ml, #pop, #self_closing_xml, #to_s, #xml
Constructor Details
#initialize(numerator, denominator) ⇒ Frac
Returns a new instance of Frac.
134 135 136 137 138 |
# File 'lib/mathemagical/element.rb', line 134 def initialize(numerator, denominator) super("mfrac") self << numerator self << denominator end |