Module: Arel::ArrayPredications

Defined in:
lib/arel/array_predications.rb

Instance Method Summary collapse

Instance Method Details

#contained_by(value) ⇒ Object

Used by both JSON and ARRAY so it doesn’t try to cast to array



7
8
9
# File 'lib/arel/array_predications.rb', line 7

def contained_by(value)
  Arel::Nodes::ContainedBy.new(self, value)
end

#excludes(value) ⇒ Object



11
12
13
# File 'lib/arel/array_predications.rb', line 11

def excludes(value)
  Arel::Nodes::Excludes.new(self, value)
end