Method: Sequel::Postgres::PGRange::Parser#initialize

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

#initialize(db_type, converter = nil) ⇒ Parser

Set the db_type and converter on initialization.

[View source]

85
86
87
88
# File 'lib/sequel/extensions/pg_range.rb', line 85

def initialize(db_type, converter=nil)
  @db_type = db_type.to_s.dup.freeze if db_type
  @converter = converter
end