Class: ActiveModel::Relation::WhereClause::Predicate

Inherits:
Object
  • Object
show all
Defined in:
lib/active_model/relation/where_clause.rb

Direct Known Subclasses

BlockPredicate, EqualsPredicate, NotPredicate

Instance Method Summary collapse

Instance Method Details

#call(record) ⇒ Object

Raises:

  • (NotImplementedError)


7
8
9
# File 'lib/active_model/relation/where_clause.rb', line 7

def call(record)
  raise NotImplementedError
end

#invertObject



11
12
13
# File 'lib/active_model/relation/where_clause.rb', line 11

def invert
  NotPredicate.new(self)
end