Sha256: 8428d1ab35930baf64290ab7bf76f03516e0057fde69bd93148121c8ec181839

Contents?: true

Size: 1.04 KB

Versions: 4

Compression:

Stored size: 1.04 KB

Contents

module Plurimath
  module Math
    module Symbols
      class Paren
        class Rround < 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?
            false
          end

          def close?
            true
          end

          def opening
            Lround
          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/rround.rb
plurimath-0.8.13 lib/plurimath/math/symbols/paren/rround.rb
plurimath-0.8.12 lib/plurimath/math/symbols/paren/rround.rb
plurimath-0.8.11 lib/plurimath/math/symbols/paren/rround.rb