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



5
6
7
# File 'lib/arel/array_predications.rb', line 5

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

#excludes(value) ⇒ Object



9
10
11
# File 'lib/arel/array_predications.rb', line 9

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