Class: ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Array
- Defined in:
- activerecord/lib/active_record/connection_adapters/postgresql/oid.rb
Instance Attribute Summary collapse
-
#subtype ⇒ Object
readonly
Returns the value of attribute subtype.
Instance Method Summary collapse
-
#initialize(subtype) ⇒ Array
constructor
A new instance of Array.
- #type_cast(value) ⇒ Object
Methods inherited from Type
Constructor Details
#initialize(subtype) ⇒ Array
Returns a new instance of Array.
89 90 91 |
# File 'activerecord/lib/active_record/connection_adapters/postgresql/oid.rb', line 89 def initialize(subtype) @subtype = subtype end |
Instance Attribute Details
#subtype ⇒ Object (readonly)
Returns the value of attribute subtype
88 89 90 |
# File 'activerecord/lib/active_record/connection_adapters/postgresql/oid.rb', line 88 def subtype @subtype end |
Instance Method Details
#type_cast(value) ⇒ Object
93 94 95 96 97 98 99 |
# File 'activerecord/lib/active_record/connection_adapters/postgresql/oid.rb', line 93 def type_cast(value) if String === value ConnectionAdapters::PostgreSQLColumn.string_to_array value, @subtype else value end end |