Method: Sequel::Postgres::PGRow::ArrayRow.subclass

Defined in:
lib/sequel/extensions/pg_row.rb

.subclass(db_type) ⇒ Object

Create a subclass associated with a specific database type. This is done so that instances of this subclass are automatically casted to the database type when literalizing.



114
115
116
117
118
119
# File 'lib/sequel/extensions/pg_row.rb', line 114

def self.subclass(db_type)
  Class.new(self) do
    Sequel.set_temp_name(self){"Sequel::Postgres::PGRow::ArrayRow::_Subclass(#{db_type})"}
    @db_type = db_type
  end
end