module Mongoid::Criteria::Queryable::Extensions::Regexp
This module contains additional regex behavior.
Public Instance Methods
regexp?()
click to toggle source
Is the object a regexp?
@example Is the object a regex?
/\A[123]/.regexp?
@return [ true ] Always true.
@since 1.0.0
# File lib/mongoid/criteria/queryable/extensions/regexp.rb, line 20 def regexp?; true; end