Class: Mathemagical::Number
- Defined in:
- lib/mathemagical/element.rb
Instance Attribute Summary
Attributes inherited from Element
#attributes, #children, #display_style, #name
Instance Method Summary collapse
- #<<(o) ⇒ Object
-
#initialize ⇒ Number
constructor
A new instance of Number.
Methods inherited from Element
#[], #[]=, #as_display_style, #build_attributes_string, #child_ml, #pop, #self_closing_xml, #to_s, #xml
Constructor Details
#initialize ⇒ Number
Returns a new instance of Number.
202 203 204 |
# File 'lib/mathemagical/element.rb', line 202 def initialize super("mn") end |
Instance Method Details
#<<(o) ⇒ Object
206 207 208 209 |
# File 'lib/mathemagical/element.rb', line 206 def <<(o) @children << o self end |