Class: PGArrays::PgArray
Direct Known Subclasses
Instance Attribute Summary collapse
-
#base_type ⇒ Object
readonly
Returns the value of attribute base_type.
Instance Method Summary collapse
-
#initialize(array, type = nil) ⇒ PgArray
constructor
A new instance of PgArray.
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_type ⇒ Object (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 |