Module: BSON::NilClass

Includes:
Specialized
Defined in:
lib/bson/nil_class.rb

Overview

Injects behaviour for encoding and decoding nil values to and from raw bytes as specified by the BSON spec.

See Also:

Since:

  • 2.0.0

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

BSON_TYPE =

A nil is type 0x0A in the BSON spec.

Since:

  • 2.0.0

::String.new(10.chr, encoding: BINARY).freeze

Method Summary

Methods included from Specialized

#==, #to_bson