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

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

Overview

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

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#regexp?true

Deprecated.

Is the object a regexp?

Examples:

Is the object a regex?

bson_raw_regexp.regexp?

Returns:

  • (true)

    Always true.



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

def regexp?; true; end