Class: DataMapper::Query::Conditions::RegexpComparison

Class | DataMapper::Query::Conditions::RegexpComparison
In: | lib/dm-core/query/conditions/comparison.rb
Parent: | AbstractComparison

Tests whether the value in the record matches the expected_value regexp set for the Comparison.

### Methods

matches? valid?

### Public Instance methods

matches?(record)

Asserts that the record value matches the comparison

@param [Resource, Hash] record

      The record containing the value to be matched

@return [Boolean]

@api semipublic

valid?()

Checks that the Comparison is valid

@see AbstractComparison#valid?

@api semipublic

[Validate]