Method: ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Array#initialize

Defined in:
lib/active_record/connection_adapters/postgresql/oid/array.rb

#initialize(subtype, delimiter = ",") ⇒ Array

Returns a new instance of Array.



15
16
17
18
19
20
21
# File 'lib/active_record/connection_adapters/postgresql/oid/array.rb', line 15

def initialize(subtype, delimiter = ",")
  @subtype = subtype
  @delimiter = delimiter

  @pg_encoder = PG::TextEncoder::Array.new name: "#{type}[]", delimiter: delimiter
  @pg_decoder = PG::TextDecoder::Array.new name: "#{type}[]", delimiter: delimiter
end