class Sequel::Postgres::PGArray::Creator
Callable object that takes the input string and parses it using Parser.
Attributes
The converter callable that is called on each member of the array to convert it to the correct type.
Public Class Methods
Source
# File lib/sequel/extensions/pg_array.rb 433 def initialize(type, converter=nil) 434 @type = type 435 @converter = converter 436 end
Set the type and optional converter callable that will be used.
Public Instance Methods
Source
# File lib/sequel/extensions/pg_array.rb 441 def call(string) 442 PGArray.new(Sequel::Postgres.parse_pg_array(string, @converter), @type) 443 end
simplecov:disable Use sequel_pg’s C-based parser if it has already been defined.