Sha256: 5550ec0e1701c2b693f3ef640dab9ab6e1a0b8314a6e0e92a6128476de05423b

Contents?: true

Size: 946 Bytes

Versions: 2

Compression:

Stored size: 946 Bytes

Contents

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

        # output methods
        def to_latex
          "\\leftleftarrows"
        end

        def to_asciimath
          parsing_wrapper("leftleftarrows", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x21c7;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/leftleftarrows.rb
plurimath-0.8.13 lib/plurimath/math/symbols/leftleftarrows.rb