Module: BSON::NilClass::ClassMethods

Defined in:
lib/bson/nil_class.rb

Overview

Since:

  • 2.0.0

Instance Method Summary collapse

Instance Method Details

#from_bson(buffer, **options) ⇒ nil

Deserialize NilClass from BSON.

Parameters:

  • buffer (ByteBuffer)

    The byte buffer.

  • options (Hash)

    a customizable set of options

Options Hash (**options):

  • :mode (nil | :bson)

    Decoding mode to use.

Returns:

  • (nil)

    The decoded nil value.

See Also:

Since:

  • 2.0.0



46
47
48
# File 'lib/bson/nil_class.rb', line 46

def from_bson(buffer, **options)
  nil
end