Method: Sequel::Postgres::PGRow::HashRow.subclass

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

.subclass(db_type, columns) ⇒ Object

Create a new subclass of this class with the given database type and columns.


172
173
174
175
176
177
178
# File 'lib/sequel/extensions/pg_row.rb', line 172

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