Class: Symbol

Inherits:
Object
  • Object
show all
Defined in:
lib/mongo/bson.rb

Overview

Patch for allowing deprecated symbols to be used.

Since:

  • 2.2.1

Instance Method Summary collapse

Instance Method Details

#bson_typeString

Overrides the default BSON type to use the symbol type instead of a string type.

Examples:

Get the bson type.

:test.bson_type

Returns:

  • (String)

    The character 14.

Since:

  • 2.2.1



32
33
34
# File 'lib/mongo/bson.rb', line 32

def bson_type
  BSON::Symbol::BSON_TYPE
end