Class: Plurimath::Math::Function::Cancel
- Inherits:
-
UnaryFunction
- Object
- Core
- UnaryFunction
- Plurimath::Math::Function::Cancel
- Defined in:
- lib/plurimath/math/function/cancel.rb
Instance Attribute Summary
Attributes inherited from UnaryFunction
Instance Method Summary collapse
Methods inherited from UnaryFunction
#==, #initialize, #to_asciimath, #to_html, #to_latex
Methods inherited from Core
#class_name, #empty_tag, #insert_t_tag, #nary_attr_value, #omml_parameter, #omml_tag_name, #r_element, #tag_name, #validate_function_formula
Constructor Details
This class inherits a constructor from Plurimath::Math::Function::UnaryFunction
Instance Method Details
#to_mathml_without_math_tag ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/plurimath/math/function/cancel.rb', line 9 def to_mathml_without_math_tag cancel_tag = Utility.ox_element( "menclose", attributes: { notation: "updiagonalstrike" }, ) first_value = parameter_one&.to_mathml_without_math_tag Utility.update_nodes(cancel_tag, [first_value]) end |
#to_omml_without_math_tag ⇒ Object
18 19 20 |
# File 'lib/plurimath/math/function/cancel.rb', line 18 def to_omml_without_math_tag omml_value end |