Module: Mongoid::Extensions::String::Checks

Included in:
String
Defined in:
lib/mongoid/extensions/string/checks.rb

Overview

This module has object checks in it.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#unconvertable_to_bsonObject

:nodoc:



8
9
10
# File 'lib/mongoid/extensions/string/checks.rb', line 8

def unconvertable_to_bson
  @unconvertable_to_bson
end

Instance Method Details

#unconvertable_to_bson?true, false

Is the object not to be converted to bson on criteria creation?

Examples:

Is the object unconvertable?

object.unconvertable_to_bson?

Returns:

  • (true, false)

    If the object is unconvertable.

Since:

  • 2.2.1



18
19
20
# File 'lib/mongoid/extensions/string/checks.rb', line 18

def unconvertable_to_bson?
  !!@unconvertable_to_bson
end