Class: MathML::Element

Inherits:
XMLElement
  • Object
show all
Defined in:
lib/math_ml.rb

Direct Known Subclasses

Fenced, Frac, Identifier, None, Number, Operator, Over, Root, Row, Space, Sqrt, SubSup, Table, Td, Text, Tr, Under

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from XMLElement

#pop

Instance Attribute Details

#display_styleObject (readonly)

Returns the value of attribute display_style.



29
30
31
# File 'lib/math_ml.rb', line 29

def display_style
  @display_style
end

Instance Method Details

#<<(s) ⇒ Object



36
37
38
39
# File 'lib/math_ml.rb', line 36

def <<(s)
	s = MathML.pcstring(s) if String===s
	super(s)
end

#as_display_styleObject



31
32
33
34
# File 'lib/math_ml.rb', line 31

def as_display_style
	@display_style = true
	self
end