123456789_123456789_123456789_123456789_123456789_

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

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

Overview

Adds query type-casting behavior to BSON::Regexp::Raw class.

Instance Attribute Summary

Instance Attribute Details

#regexp?true (readonly)

Deprecated.

Is the object a regexp?

Examples:

Is the object a regex?

bson_raw_regexp.regexp?

Returns:

  • (true)

    Always true.

[ GitHub ]

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

def regexp?; true; end