Sha256: e19f19f64bff3039ac207efa53b9a181ec30940955e9aff9e3f53b132af29443

Contents?: true

Size: 746 Bytes

Versions: 4

Compression:

Stored size: 746 Bytes

Contents

# frozen_string_literal: true

require_relative "unary_function"
module Plurimath
  module Math
    module Function
      class Mbox < UnaryFunction
        def to_asciimath
          Text.new(parameter_one).to_asciimath
        end

        def to_mathml_without_math_tag(intent)
          Text.new(parameter_one).to_mathml_without_math_tag(intent)
        end

        def to_latex
          "\\mbox{#{parameter_one}}"
        end

        def to_html
          parameter_one
        end

        def to_omml_without_math_tag(display_style)
          Text.new(parameter_one).to_omml_without_math_tag(display_style)
        end

        def to_unicodemath
          Text.new(parameter_one).to_unicodemath
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/function/mbox.rb
plurimath-0.8.13 lib/plurimath/math/function/mbox.rb
plurimath-0.8.12 lib/plurimath/math/function/mbox.rb
plurimath-0.8.11 lib/plurimath/math/function/mbox.rb