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