class DataMapper::Query::Conditions::RegexpComparison
Tests whether the value in the record matches the expected regexp set for the Comparison.
Public Instance Methods
valid?()
click to toggle source
Checks that the Comparison is valid
@see DataMapper::Query::Conditions::AbstractComparison#valid?
@api semipublic
# File lib/dm-core/query/conditions/comparison.rb, line 728 def valid? loaded_value.kind_of?(Regexp) end
Private Instance Methods
comparator_string()
click to toggle source
@return [String]
@see DataMapper::Query::Conditions::AbstractComparison#to_s
@api private
# File lib/dm-core/query/conditions/comparison.rb, line 748 def comparator_string '=~' end
typecast(value)
click to toggle source
Returns the value untouched
@return [Object]
@api private
# File lib/dm-core/query/conditions/comparison.rb, line 739 def typecast(value) value end