Sha256: 05d367410070fdb4d208a8ed6e5179f038ca0c391a08bfe7778dc30e329c5313

Contents?: true

Size: 1.04 KB

Versions: 4

Compression:

Stored size: 1.04 KB

Contents

module Plurimath
  module Math
    module Symbols
      class Paren
        class Rcurly < 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("mi") << paren_value
          end

          def to_omml_without_math_tag(_)
            paren_value
          end

          def to_html
            paren_value
          end

          def open?
            false
          end

          def close?
            true
          end

          def opening
            Lcurly
          end

          def paren_value
            "}"
          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/rcurly.rb
plurimath-0.8.13 lib/plurimath/math/symbols/paren/rcurly.rb
plurimath-0.8.12 lib/plurimath/math/symbols/paren/rcurly.rb
plurimath-0.8.11 lib/plurimath/math/symbols/paren/rcurly.rb