Module: Mongoid::Criteria::Queryable::Extensions::Regexp::ClassMethods
- Defined in:
- build/mongoid-6.1/lib/mongoid/criteria/queryable/extensions/regexp.rb
Instance Method Summary collapse
-
#evolve(object) ⇒ Regexp
Evolve the object into a regex.
Instance Method Details
#evolve(object) ⇒ Regexp
Evolve the object into a regex.
32 33 34 35 36 |
# File 'build/mongoid-6.1/lib/mongoid/criteria/queryable/extensions/regexp.rb', line 32 def evolve(object) __evolve__(object) do |obj| ::Regexp.new(obj) end end |