Sha256: e522d55e83fc9924d5263fb6f95fe9a962c0be7ca8104eb67ad1a7f669dfc924

Contents?: true

Size: 1.09 KB

Versions: 4

Compression:

Stored size: 1.09 KB

Contents

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

          # output methods
          def to_latex
            paren_value
          end

          def to_asciimath
            paren_value
          end

          def to_unicodemath
            Utility.html_entity_to_unicode(paren_value)
          end

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

          def to_omml_without_math_tag(_)
            paren_value
          end

          def to_html
            paren_value
          end

          def open?
            true
          end

          def close?
            false
          end

          def closing
            Rsquare
          end

          def paren_value
            "["
          end

          def to_matrices
            "["
          end
        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/paren/lsquare.rb
plurimath-0.8.13 lib/plurimath/math/symbols/paren/lsquare.rb
plurimath-0.8.12 lib/plurimath/math/symbols/paren/lsquare.rb
plurimath-0.8.11 lib/plurimath/math/symbols/paren/lsquare.rb