Sha256: 238bb99f6b753d63f0d8eadc5c0724b5cdb04a8ad5c9898b25672e37e32048ff

Contents?: true

Size: 542 Bytes

Versions: 5

Compression:

Stored size: 542 Bytes

Contents

# frozen_string_literal: true

require_relative "unary_function"

module Plurimath
  module Math
    module Function
      class Dot < UnaryFunction
        def to_mathml_without_math_tag
          first_value = parameter_one&.to_mathml_without_math_tag
          dot_tag = (Utility.ox_element("mo") << ".")
          over_tag = Utility.ox_element("mover")
          Utility.update_nodes(
            over_tag,
            [
              first_value,
              dot_tag,
            ],
          )
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
plurimath-0.3.7 lib/plurimath/math/function/dot.rb
plurimath-0.3.6 lib/plurimath/math/function/dot.rb
plurimath-0.3.5 lib/plurimath/math/function/dot.rb
plurimath-0.3.4 lib/plurimath/math/function/dot.rb
plurimath-0.3.3 lib/plurimath/math/function/dot.rb