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

Deserialize NilClass from BSON.

Parameters:

  • bson (BSON)

    The encoded Null value.

Returns:

  • (nil)

    The decoded nil value.

See Also:

Since:

  • 2.0.0



54
55
56
# File 'lib/bson/nil_class.rb', line 54

def from_bson(bson)
  nil
end