Class: Mathemagical::Root
- Defined in:
- lib/mathemagical/element.rb
Instance Attribute Summary
Attributes inherited from Element
#attributes, #children, #display_style, #name
Instance Method Summary collapse
-
#initialize(index, base) ⇒ Root
constructor
A new instance of Root.
Methods inherited from Element
#<<, #[], #[]=, #as_display_style, #build_attributes_string, #child_ml, #pop, #self_closing_xml, #to_s, #xml
Constructor Details
#initialize(index, base) ⇒ Root
Returns a new instance of Root.
252 253 254 255 256 |
# File 'lib/mathemagical/element.rb', line 252 def initialize(index, base) super("mroot") self << base self << index end |