Callable object that takes the input string and parses it using Parser
.
Attributes
Public Class methods
new(type, converter=nil)
Set the type and optional converter callable that will be used.
[show source]
# File lib/sequel/extensions/pg_array.rb 410 def initialize(type, converter=nil) 411 @type = type 412 @converter = converter 413 end
Public Instance methods
call(string)
:nocov: Use sequel_pg’s C-based parser if it has already been defined.
[show source]
# File lib/sequel/extensions/pg_array.rb 418 def call(string) 419 PGArray.new(Sequel::Postgres.parse_pg_array(string, @converter), @type) 420 end