Class: MathML::SubSup

Inherits:
Element show all
Defined in:
lib/math_ml/element.rb

Instance Attribute Summary collapse

Attributes inherited from Element

#display_style

Instance Method Summary collapse

Methods inherited from Element

#as_display_style

Methods inherited from XMLElement

#pop

Constructor Details

#initialize(display_style, body) ⇒ SubSup

Returns a new instance of SubSup.



87
88
89
90
91
# File 'lib/math_ml/element.rb', line 87

def initialize(display_style, body)
	super("mrow")
	as_display_style if display_style
	@body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



85
86
87
# File 'lib/math_ml/element.rb', line 85

def body
  @body
end

#subObject

Returns the value of attribute sub.



85
86
87
# File 'lib/math_ml/element.rb', line 85

def sub
  @sub
end

#supObject

Returns the value of attribute sup.



85
86
87
# File 'lib/math_ml/element.rb', line 85

def sup
  @sup
end