Method: Sequel::Postgres::ArrayOp#to_string

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

#to_string(joiner = "", null = nil) ⇒ Object Also known as: join

Call the array_to_string method:

array_op.join           # array_to_string(array, '')
array_op.to_string      # array_to_string(array, '')
array_op.join(":")      # array_to_string(array, ':')
array_op.join(":", "*") # array_to_string(array, ':', '*')


267
268
269
270
271
272
273
# File 'lib/sequel/extensions/pg_array_ops.rb', line 267

def to_string(joiner="", null=nil)
  if null.nil?
    function(:array_to_string, joiner)
  else
    function(:array_to_string, joiner, null)
  end
end