module Mongoid::Criteria::Queryable::Extensions::Regexp

Adds query type-casting behavior to Regexp class.

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. @deprecated

# File lib/mongoid/criteria/queryable/extensions/regexp.rb, line 19
def regexp?; true; end