Sha256: b833c2f2bac3d9e57cd853b68a8f62ab54262518c96cd12245b1249d677ee186

Contents?: true

Size: 563 Bytes

Versions: 2

Compression:

Stored size: 563 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
          omml_value
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.3.9 lib/plurimath/math/function/cancel.rb
plurimath-0.3.8 lib/plurimath/math/function/cancel.rb