Sha256: af2c19ba65cb9e291f06b8cea77dae383fa5811c72ccb71142bfbb31bbb39272

Contents?: true

Size: 738 Bytes

Versions: 4

Compression:

Stored size: 738 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class If < Symbol
        INPUT = {
          unicodemath: [["if"]],
          asciimath: [["if"]],
          mathml: ["if"],
          latex: [["if"]],
          omml: ["if"],
          html: ["if"],
        }.freeze

        # output methods
        def to_latex
          "\\operatorname{if}"
        end

        def to_asciimath
          "if"
        end

        def to_unicodemath
          Utility.html_entity_to_unicode("if")
        end

        def to_mathml_without_math_tag(_)
          ox_element("mo") << "if"
        end

        def to_omml_without_math_tag(_)
          "if"
        end

        def to_html
          "if"
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/if.rb
plurimath-0.8.13 lib/plurimath/math/symbols/if.rb
plurimath-0.8.12 lib/plurimath/math/symbols/if.rb
plurimath-0.8.11 lib/plurimath/math/symbols/if.rb