Class Index [+]

Quicksearch

DataMapper::Query::Conditions::NullOperation

Public Class Methods

new() click to toggle source

Initialize a NullOperation

@return [NullOperation]

  the operation

@api semipublic

     # File lib/dm-core/query/conditions/operation.rb, line 714
714:         def initialize
715:           @operands = Set.new
716:         end

Public Instance Methods

inspect() click to toggle source

Inspecting the operation should return the same as nil

@return [String]

  return the string 'nil'

@api semipublic

     # File lib/dm-core/query/conditions/operation.rb, line 702
702:         def inspect
703:           'nil'
704:         end
matches?(record) click to toggle source

Match the record

A NullOperation matches every record.

@param [Resource, Hash] record

  the resource to match

@return [true]

  every record matches

@api semipublic

     # File lib/dm-core/query/conditions/operation.rb, line 670
670:         def matches?(record)
671:           record.kind_of?(Hash) || record.kind_of?(Resource)
672:         end
nil?() click to toggle source

Treat the operation the same as nil

@return [true]

  should be treated as nil

@api semipublic

     # File lib/dm-core/query/conditions/operation.rb, line 692
692:         def nil?
693:           true
694:         end
valid?() click to toggle source

Test validity of the operation

A NullOperation is always valid.

@return [true]

  always valid

@api semipublic

     # File lib/dm-core/query/conditions/operation.rb, line 682
682:         def valid?
683:           true
684:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.