Methods

Class/Module Index [+]

Quicksearch

DataMapper::Query::Conditions::EqualToComparison

Tests whether the value in the record is equal to the expected set for the Comparison.

Public Instance Methods

matches?(record) click to toggle source

Tests that the record value matches the comparison

@param [Resource, Hash] record

The record containing the value to be matched

@return [Boolean]

@api semipublic

# File lib/dm-core/query/conditions/comparison.rb, line 529
def matches?(record)
  if expected.nil?
    record_value(record).nil?
  else
    super
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.