Sha256: b0b7ffa89b4c9aa70aa3f428622aae38ea5f7e568dc7ac364feba34db0a4ff0c

Contents?: true

Size: 910 Bytes

Versions: 2

Compression:

Stored size: 910 Bytes

Contents

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

        # output methods
        def to_latex
          "\\leftleftarrows"
        end

        def to_asciimath
          parsing_wrapper("leftleftarrows")
        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.12 lib/plurimath/math/symbols/leftleftarrows.rb
plurimath-0.8.11 lib/plurimath/math/symbols/leftleftarrows.rb