| Class | MathML::SubSup |
| In: |
lib/math_ml/element.rb
|
| Parent: | Element |
| body | [R] | |
| sub | [R] | |
| sup | [R] |
# File lib/math_ml/element.rb, line 87
87: def initialize(display_style, body)
88: super("mrow")
89: as_display_style if display_style
90: @body = body
91: end
# File lib/math_ml/element.rb, line 113
113: def update
114: update_name
115: update_contents
116: end
# File lib/math_ml/element.rb, line 105
105: def update_contents
106: contents.clear
107: contents << @body
108: contents << @sub if @sub
109: contents << @sup if @sup
110: end