模块:Mongoid::Criteria::Queryable::Extensions::Regexp::Raw_::ClassMethods
- 定义于:
- lib/mongoid/criteria/queryable/extensions/regexp.rb
实例方法摘要折叠
-
# Evolution (对象) ⇒ BSON::Regexp::Raw
将对象演进为原始BSON正则表达式。
实例方法详细信息
# describe (object) ⇒ BSON::Regexp::Raw
将对象演进为原始BSON正则表达式。
62 63 64 65 66 |
# File 'lib/mongoid/criteria/queryable/extensions/regexp.rb', line 62 def 发展(对象) __evolve__(对象) do |obj| obj.is_a?(字符串) ? BSON::regexp::原始.new(obj) : obj end end |