Sha256: 5ff5750dac5e06a56a7684df7ae1713793ccc1b17282717eb92de6d7f8c646dc
Contents?: true
Size: 838 Bytes
Versions: 14
Compression:
Stored size: 838 Bytes
Contents
# frozen_string_literal: true require_relative "unary_function" module Plurimath module Math module Function class Cancel < UnaryFunction def to_mathml_without_math_tag(intent, options:) cancel_tag = Utility.ox_element( "menclose", attributes: { notation: "updiagonalstrike" }, ) first_value = parameter_one&.to_mathml_without_math_tag(intent, options: options) Utility.update_nodes(cancel_tag, [first_value]) end def to_omml_without_math_tag(display_style, options:) omml_value(display_style, options: options) end def to_unicodemath(options:) first_value = unicodemath_parens(parameter_one, options: options) if parameter_one "╱#{first_value}" end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems