Class: DataMapper::Query::Conditions::RegexpComparison
- Inherits:
-
AbstractComparison
- Object
- AbstractComparison
- DataMapper::Query::Conditions::RegexpComparison
- Defined in:
- lib/dm-core/query/conditions/comparison.rb
Overview
Tests whether the value in the record matches the expected regexp set for the Comparison.
Instance Attribute Summary
Attributes inherited from AbstractComparison
#loaded_value, #parent, #subject
Instance Method Summary collapse
-
#valid? ⇒ Boolean
Checks that the Comparison is valid.
Methods inherited from AbstractComparison
descendants, inherited, #inspect, #matches?, #negated?, #property?, #relationship?, slug, #slug, #to_s, #value
Methods included from Equalizer
Instance Method Details
#valid? ⇒ Boolean
Checks that the Comparison is valid
728 729 730 |
# File 'lib/dm-core/query/conditions/comparison.rb', line 728 def valid? loaded_value.kind_of?(Regexp) end |