123456789_123456789_123456789_123456789_123456789_

Class: Symbol

Relationships & Source Files
Inherits: Object
Defined in: lib/mongo/bson.rb

Overview

Patch for allowing deprecated symbols to be used.

Since:

  • 2.2.1

Instance Method Summary

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

[ GitHub ]

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

def bson_type
  BSON::Symbol::BSON_TYPE
end