Sha256: e1c49ec9260ef1aad254354fcf64bcb812f107b47a83795e32e29905bde7e541

Contents?: true

Size: 524 Bytes

Versions: 3

Compression:

Stored size: 524 Bytes

Contents

# frozen_string_literal: true

require_relative "../table"

module Plurimath
  module Math
    module Function
      class Table
        class Eqarray < Table
          def initialize(value = [],
                         open_paren = "",
                         close_paren = "",
                         options = {})
            super
          end

          def to_unicodemath
            "#{open_paren}█(#{value&.map(&:to_unicodemath).join("@")})#{close_paren}"
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
plurimath-0.8.2 lib/plurimath/math/function/table/eqarray.rb
plurimath-0.8.1 lib/plurimath/math/function/table/eqarray.rb
plurimath-0.8.0 lib/plurimath/math/function/table/eqarray.rb