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

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

Overview

This module contains additional regex behavior.

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



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

def regexp?; true; end