123456789_123456789_123456789_123456789_123456789_

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

Relationships & Source Files
Namespace Children
Modules:
Defined in: lib/mongoid/criteria/queryable/extensions/regexp.rb

Overview

Adds query type-casting behavior to Regexp class.

Instance Attribute Summary

Instance Attribute Details

#regexp?true (readonly)

Deprecated.

Is the object a regexp?

Examples:

Is the object a regex?

/\A[123]/.regexp?

Returns:

  • (true)

    Always true.

[ GitHub ]

  
# File 'lib/mongoid/criteria/queryable/extensions/regexp.rb', line 19

def regexp?; true; end