Sha256: bd6c4f54d9ff8e6cb95003e17ff17c4819439cdec637c8f35dcb537dbe2e1ed2

Contents?: true

Size: 620 Bytes

Versions: 4

Compression:

Stored size: 620 Bytes

Contents

# frozen_string_literal: true

require_relative "unary_function"
module Plurimath
  module Math
    module Function
      class Mbox < UnaryFunction
        def to_mathml_without_math_tag
          text = Utility.ox_element("mtext")
          text << (parameter_one.to_mathml_without_math_tag) if parameter_one
          text
        end

        def to_latex
          first_value = parameter_one&.to_latex
          "\\mbox{#{first_value}}"
        end

        def to_html
          parameter_one&.to_html
        end

        def to_omml_without_math_tag
          omml_value
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
plurimath-0.3.9 lib/plurimath/math/function/mbox.rb
plurimath-0.3.8 lib/plurimath/math/function/mbox.rb
plurimath-0.3.7 lib/plurimath/math/function/mbox.rb
plurimath-0.3.6 lib/plurimath/math/function/mbox.rb