Symbol — Documentation by YARD 0.9.37 (original) (raw)

Class: Symbol

Inherits:

Object

Defined in:

lib/mongo/bson.rb

Overview

Patch for allowing deprecated symbols to be used.

Instance Method Summarycollapse

Instance Method Details

#bson_type ⇒ String

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

Examples:

Get the bson type.

:test.bson_type

Returns:

Since:

32 33 34 # File 'lib/mongo/bson.rb', line 32 def bson_type BSON::Symbol::BSON_TYPE end

Generated on Wed Mar 12 11:54:03 2025 byyard 0.9.37 (ruby-3.2.3).