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) ⇒ nil

Deserialize NilClass from BSON.

Parameters:

  • buffer (ByteBuffer)

    The byte buffer.

Returns:

  • (nil)

    The decoded nil value.

See Also:

Since:

  • 2.0.0


42
43
44
# File 'lib/bson/nil_class.rb', line 42

def from_bson(buffer)
  nil
end