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

Methods

inspect   matches?   new   nil?   valid?  

Public Class methods

Initialize a NullOperation

@return [NullOperation]

  the operation

@api semipublic

Public Instance methods

Inspecting the operation should return the same as nil

@return [String]

  return the string 'nil'

@api semipublic

Match the record

A NullOperation matches every record.

@param [Resource, Hash] record

  the resource to match

@return [true]

  every record matches

@api semipublic

Treat the operation the same as nil

@return [true]

  should be treated as nil

@api semipublic

Test validity of the operation

A NullOperation is always valid.

@return [true]

  always valid

@api semipublic

[Validate]