Class: Plurimath::Math::Function::Ubrace
- Inherits:
-
UnaryFunction
- Object
- UnaryFunction
- Plurimath::Math::Function::Ubrace
- Defined in:
- lib/plurimath/math/function/ubrace.rb
Instance Attribute Summary
Attributes inherited from UnaryFunction
Instance Method Summary collapse
Methods inherited from UnaryFunction
#==, #class_name, #initialize, #to_asciimath, #to_html, #to_omml_without_math_tag
Constructor Details
This class inherits a constructor from Plurimath::Math::Function::UnaryFunction
Instance Method Details
#to_latex ⇒ Object
9 10 11 12 |
# File 'lib/plurimath/math/function/ubrace.rb', line 9 def to_latex first_value = "{#{parameter_one.to_latex}}" if parameter_one "\\underbrace#{first_value}" end |
#to_mathml_without_math_tag ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/plurimath/math/function/ubrace.rb', line 14 def to_mathml_without_math_tag mo_tag = (Utility.ox_element("mo") << "⏟") if parameter_one over_tag = Utility.ox_element("munder") arr_value = mathml_value Utility.update_nodes(over_tag, (arr_value << mo_tag)) else mo_tag end end |