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
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
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
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
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.
Generated with the Darkfish Rdoc Generator 1.1.6.