Sha256: bb4a9e8477f8e6fd19c7ad36737c61dc24c95d353a039b804aadee2bac066ef2

Contents?: true

Size: 641 Bytes

Versions: 3

Compression:

Stored size: 641 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
          Text.new(parameter_one).to_mathml_without_math_tag
        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
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
plurimath-0.7.2 lib/plurimath/math/function/mbox.rb
plurimath-0.7.1 lib/plurimath/math/function/mbox.rb
plurimath-0.7.0 lib/plurimath/math/function/mbox.rb