Class DataMapper::Query::Conditions::NotOperation
In: lib/dm-core/query/conditions/operation.rb
Parent: AbstractOperation

Methods

<<   matches?   minimize   negated?   operand   to_s  

Public Instance methods

Add an operand to the operation

This will only allow a single operand to be added.

@param [AbstractOperation, AbstractComparison, Array] operand

  the operand to add

@return [self]

  the operation

@api semipublic

Match the record

@param [Resource, Hash] record

  the resource to match

@return [true]

  true if the record matches, false if not

@api semipublic

Minimize the operation

@return [self]

  the minimized NotOperation

@return [AbstractOperation, AbstractComparison, Array]

  the minimized operation

@api semipublic

Test if the operation is negated

Defaults to return false.

@return [Boolean]

  true if the operation is negated, false if not

@api private

Return the only operand in the operation

@return [AbstractOperation, AbstractComparison, Array]

  the operand

@api semipublic

Return the string representation of the operation

@return [String]

  the string representation of the operation

@api semipublic

[Validate]