Sha256: 287296d0656f5b1b66ec8bd2eadf7a426612eec39f19cb95b01e2c8a5a688cdb

Contents?: true

Size: 931 Bytes

Versions: 7

Compression:

Stored size: 931 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Gets < Symbol
        INPUT = {
          unicodemath: [["gets", "leftarrow", "&#x2190;"], parsing_wrapper(["larr"])],
          asciimath: [["leftarrow", "larr", "&#x2190;"], parsing_wrapper(["gets"])],
          mathml: ["&#x2190;"],
          latex: [["leftarrow", "gets", "&#x2190;"], parsing_wrapper(["larr"])],
          omml: ["&#x2190;"],
          html: ["&#x2190;"],
        }.freeze

        # output methods
        def to_latex
          "\\gets"
        end

        def to_asciimath
          "larr"
        end

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

        def to_mathml_without_math_tag
          ox_element("mo") << "&#x2190;"
        end

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

        def to_html
          "&#x2190;"
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/gets.rb
plurimath-0.8.9 lib/plurimath/math/symbols/gets.rb
plurimath-0.8.8 lib/plurimath/math/symbols/gets.rb
plurimath-0.8.7 lib/plurimath/math/symbols/gets.rb
plurimath-0.8.6 lib/plurimath/math/symbols/gets.rb
plurimath-0.8.5 lib/plurimath/math/symbols/gets.rb
plurimath-0.8.4 lib/plurimath/math/symbols/gets.rb