Sha256: 4b121950face1c5a9aa35a5108da1e8e6ceaa43def3b50377705680a3f56dd9d
Contents?: true
Size: 738 Bytes
Versions: 10
Compression:
Stored size: 738 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 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 def to_omml_without_math_tag(display_style) omml_value(display_style) end def to_unicodemath first_value = unicodemath_parens(parameter_one) if parameter_one "╱#{first_value}" end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems