Module: Mongoid::Criteria::Queryable::Extensions::Regexp

Defined in:
build/mongoid-7.0/lib/mongoid/criteria/queryable/extensions/regexp.rb

Overview

This module contains additional regex behaviour.

Defined Under Namespace

Modules: ClassMethods, Raw

Instance Method Summary collapse

Instance Method Details

#regexp?true

Is the object a regexp?

Examples:

Is the object a regex?

/\A[123]/.regexp?

Returns:

  • (true)

    Always true.

Since:

  • 1.0.0



18
# File 'build/mongoid-7.0/lib/mongoid/criteria/queryable/extensions/regexp.rb', line 18

def regexp?; true; end