Sha256: 0ce7bc784ce7ba071bdb2b857ff72642f58122c81db1264421c2820c75c72dfc

Contents?: true

Size: 706 Bytes

Versions: 4

Compression:

Stored size: 706 Bytes

Contents

# frozen_string_literal: true

require_relative "unary_function"

module Plurimath
  module Math
    module Function
      class Msgroup < UnaryFunction
        def to_asciimath
          parameter_one.map(&:to_asciimath).join
        end

        def to_latex
          parameter_one.map(&:to_latex).join
        end

        def to_mathml_without_math_tag
          Utility.update_nodes(
            Utility.ox_element("msgroup"),
            parameter_one.map(&:to_mathml_without_math_tag),
          )
        end

        def to_omml_without_math_tag
          omml_value
        end

        def to_html
          "<i>#{parameter_one.map(&:to_html).join}</i>"
        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/msgroup.rb
plurimath-0.3.8 lib/plurimath/math/function/msgroup.rb
plurimath-0.3.7 lib/plurimath/math/function/msgroup.rb
plurimath-0.3.6 lib/plurimath/math/function/msgroup.rb