Class: MathML::SubSup
- Inherits:
-
Element
- Object
- EimXML::Element
- XMLElement
- Element
- MathML::SubSup
- Defined in:
- lib/math_ml/element.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#sub ⇒ Object
Returns the value of attribute sub.
-
#sup ⇒ Object
Returns the value of attribute sup.
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(display_style, body) ⇒ SubSup
constructor
A new instance of SubSup.
Methods inherited from Element
Methods inherited from XMLElement
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
#body ⇒ Object (readonly)
Returns the value of attribute body.
85 86 87 |
# File 'lib/math_ml/element.rb', line 85 def body @body end |
#sub ⇒ Object
Returns the value of attribute sub.
85 86 87 |
# File 'lib/math_ml/element.rb', line 85 def sub @sub end |
#sup ⇒ Object
Returns the value of attribute sup.
85 86 87 |
# File 'lib/math_ml/element.rb', line 85 def sup @sup end |