Sha256: 2272876aca04d4fac17b681ec3073359cadb8d9719c678581095251769882179

Contents?: true

Size: 728 Bytes

Versions: 10

Compression:

Stored size: 728 Bytes

Contents

# frozen_string_literal: true

require_relative "binary_function"

module Plurimath
  module Math
    module Function
      class Mlabeledtr < BinaryFunction
        def to_mathml_without_math_tag
          table = ox_element("mtable")
          mlabeledtr = ox_element(class_name)
          labeledtr_td(mlabeledtr, parameter_two.to_mathml_without_math_tag)
          labeledtr_td(mlabeledtr, parameter_one.to_mathml_without_math_tag)
          table << mlabeledtr
        end

        def to_unicodemath
          "#{parameter_one&.to_unicodemath}##{parameter_two&.value}"
        end

        protected

        def labeledtr_td(tr, value)
          tr << (ox_element("mtd") << value)
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/function/mlabeledtr.rb
plurimath-0.8.9 lib/plurimath/math/function/mlabeledtr.rb
plurimath-0.8.8 lib/plurimath/math/function/mlabeledtr.rb
plurimath-0.8.7 lib/plurimath/math/function/mlabeledtr.rb
plurimath-0.8.6 lib/plurimath/math/function/mlabeledtr.rb
plurimath-0.8.5 lib/plurimath/math/function/mlabeledtr.rb
plurimath-0.8.4 lib/plurimath/math/function/mlabeledtr.rb
plurimath-0.8.2 lib/plurimath/math/function/mlabeledtr.rb
plurimath-0.8.1 lib/plurimath/math/function/mlabeledtr.rb
plurimath-0.8.0 lib/plurimath/math/function/mlabeledtr.rb