Class: PGArrays::PgArray

Inherits:
Array
  • Object
show all
Defined in:
lib/ar_pg_array/querying.rb

Direct Known Subclasses

PgAll, PgAny, PgIncludes

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Array

#pg, #search_all, #search_any, #search_subarray

Constructor Details

#initialize(array, type = nil) ⇒ PgArray

Returns a new instance of PgArray.



34
35
36
37
# File 'lib/ar_pg_array/querying.rb', line 34

def initialize(array, type=nil)
  super(array)
  @base_type = type if type
end

Instance Attribute Details

#base_typeObject (readonly)

Returns the value of attribute base_type.



32
33
34
# File 'lib/ar_pg_array/querying.rb', line 32

def base_type
  @base_type
end