Method: Symbol#bson_type

Defined in:
lib/mongo/bson.rb

#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