Class: Mathemagical::Identifier
- 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 ⇒ Identifier
constructor
A new instance of Identifier.
Methods inherited from Element
#[], #[]=, #as_display_style, #build_attributes_string, #child_ml, #pop, #self_closing_xml, #to_s, #xml
Constructor Details
#initialize ⇒ Identifier
Returns a new instance of Identifier.
213 214 215 |
# File 'lib/mathemagical/element.rb', line 213 def initialize super("mi") end |
Instance Method Details
#<<(o) ⇒ Object
217 218 219 220 |
# File 'lib/mathemagical/element.rb', line 217 def <<(o) @children << Mathemagical.encode(o) self end |