lib/sequel/extensions/pg_array.rb
def call(string)
          array = Sequel.parse_json(string.gsub(SUBST_RE){|m| SUBST[m]})
          array = Sequel.recursive_map(array, @converter) if @converter
          PGArray.new(array, @type)
        end
# Parse the input string by using a gsub to convert non-JSON characters to
# JSON, running it through a regular JSON parser. If a converter is used, a
# recursive map of the output is done to make sure that the entires in the
# correct type.
Parse the input string by using a gsub to convert non-JSON characters to
JSON, running it through a regular JSON parser. If a converter is used, a
recursive map of the output is done to make sure that the entires in the
correct type.
Parse the input string by using a gsub to convert non - JSON characters to JSON running it through a regular JSON parser . If a converter is used a recursive map of the output is done to make sure that the entires in the correct type .
def call(string)
          array = Sequel.parse_json(string.gsub(SUBST_RE){|m| SUBST[m]})
          array = Sequel.recursive_map(array, @converter) if @converter
          PGArray.new(array, @type)
        end
def call ( string ) array = Sequel . parse_json ( string . gsub ( SUBST_RE ) { | m | SUBST [ m ] } ) array = Sequel . recursive_map ( array , @converter ) if @converter PGArray . new ( array , @type ) end
Parse the input string by using a gsub to convert non-JSON characters to
JSON, running it through a regular JSON parser.
Parse the input string by using a gsub to convert non - JSON characters to JSON running it through a regular JSON parser .
string