Class: Mongoid::Criterion::Unconvertable

Inherits:
String show all
Defined in:
lib/mongoid/criterion/unconvertable.rb

Overview

Wrapper class for strings that should not be converted into BSON::ObjectIds.

Constant Summary

Constants included from Extensions::String::Inflections

Extensions::String::Inflections::CHAR_CONV, Extensions::String::Inflections::REVERSALS

Instance Method Summary collapse

Methods included from Extensions::String::Conversions

#to_a

Methods included from Extensions::String::Inflections

#collectionize, #identify, #invert, #labelize, #plural?, #reader, #singular?, #writer?

Constructor Details

#initialize(value) ⇒ Unconvertable

Initialize just like a normal string, and quack like it to.

Examples:

Create the new Unconvertable.

Unconvertable.new("testing")

Parameters:

  • value (String)

    The string.

Since:

  • 2.0.2



17
# File 'lib/mongoid/criterion/unconvertable.rb', line 17

def initialize(value); super; end