Method: Sequel::Postgres::ArrayOp#contains

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

#contains(other) ⇒ Object

Use the contains (@>) operator:

array_op.contains(:a) # (array @> a)


131
132
133
# File 'lib/sequel/extensions/pg_array_ops.rb', line 131

def contains(other)
  bool_op(CONTAINS, wrap_array(other))
end