MathML::Element
# File lib/math_ml/element.rb, line 87 def initialize(display_style, body) super("mrow") as_display_style if display_style @body = body end
# File lib/math_ml/element.rb, line 119 def sub=(sub) @sub = sub update end
# File lib/math_ml/element.rb, line 124 def sup=(sup) @sup = sup update end
# File lib/math_ml/element.rb, line 113 def update update_name update_contents end
# File lib/math_ml/element.rb, line 105 def update_contents contents.clear contents << @body contents << @sub if @sub contents << @sup if @sup end
# File lib/math_ml/element.rb, line 93 def update_name if @sub || @sup name = "m" name << (@sub ? (@display_style ? "under" : "sub") : "") name << (@sup ? (@display_style ? "over" : "sup") : "") else name = "mrow" end self.name = name end
[Validate]
Generated with the Darkfish Rdoc Generator 2.