Class: Mathemagical::Operator
- 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 ⇒ Operator
constructor
A new instance of Operator.
Methods inherited from Element
#[], #[]=, #as_display_style, #build_attributes_string, #child_ml, #pop, #self_closing_xml, #to_s, #xml
Constructor Details
#initialize ⇒ Operator
Returns a new instance of Operator.
224 225 226 |
# File 'lib/mathemagical/element.rb', line 224 def initialize super("mo") end |
Instance Method Details
#<<(o) ⇒ Object
228 229 230 231 |
# File 'lib/mathemagical/element.rb', line 228 def <<(o) @children << Mathemagical.encode(o) self end |