Class: Mathemagical::Text

Inherits:
Element
  • Object
show all
Defined in:
lib/mathemagical/element.rb

Instance Attribute Summary

Attributes inherited from Element

#attributes, #children, #display_style, #name

Instance Method Summary collapse

Methods inherited from Element

#[], #[]=, #as_display_style, #build_attributes_string, #child_ml, #pop, #self_closing_xml, #to_s, #xml

Constructor Details

#initializeText

Returns a new instance of Text.



235
236
237
# File 'lib/mathemagical/element.rb', line 235

def initialize
	super("mtext")
end

Instance Method Details

#<<(o) ⇒ Object



239
240
241
242
# File 'lib/mathemagical/element.rb', line 239

def <<(o)
	@children << Mathemagical.encode(o)
	self
end