Sha256: 7c34b04184d7d0ef0e5fe877991b658376dbd82213ad4ceeb797b8260f1a893d

Contents?: true

Size: 947 Bytes

Versions: 2

Compression:

Stored size: 947 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Rightarrowdiamond < Symbol
        INPUT = {
          unicodemath: [["&#x291e;"], parsing_wrapper(["rightarrowdiamond"])],
          asciimath: [["&#x291e;"], parsing_wrapper(["rightarrowdiamond"])],
          mathml: ["&#x291e;"],
          latex: [["rightarrowdiamond", "&#x291e;"]],
          omml: ["&#x291e;"],
          html: ["&#x291e;"],
        }.freeze

        # output methods
        def to_latex
          "\\rightarrowdiamond"
        end

        def to_asciimath
          parsing_wrapper("rightarrowdiamond")
        end

        def to_unicodemath
          Utility.html_entity_to_unicode("&#x291e;")
        end

        def to_mathml_without_math_tag(_)
          ox_element("mi") << "&#x291e;"
        end

        def to_omml_without_math_tag(_)
          "&#x291e;"
        end

        def to_html
          "&#x291e;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.12 lib/plurimath/math/symbols/rightarrowdiamond.rb
plurimath-0.8.11 lib/plurimath/math/symbols/rightarrowdiamond.rb