Class: BSON::Undefined
- Inherits:
-
Object
- Object
- BSON::Undefined
- Defined in:
- lib/bson/undefined.rb
Overview
Represents the Undefined BSON type
Constant Summary collapse
- BSON_TYPE =
Undefined is type 0x06 in the BSON spec.
6.chr.force_encoding(BINARY).freeze
Class Method Summary collapse
-
.from_bson(bson) ⇒ Undefined
Deserialize undefined BSON type from BSON.
Instance Method Summary collapse
-
#==(other) ⇒ true, false
Determine if undefined is equal to another object.
-
#to_bson(encoded = ''.force_encoding(BINARY)) ⇒ String
Encode the Undefined field - has no value since it only needs the type and field name when being encoded.
Class Method Details
.from_bson(bson) ⇒ Undefined
Deserialize undefined BSON type from BSON.
65 66 67 |
# File 'lib/bson/undefined.rb', line 65 def self.from_bson(bson) new end |
Instance Method Details
#==(other) ⇒ true, false
Determine if undefined is equal to another object.
39 40 41 |
# File 'lib/bson/undefined.rb', line 39 def ==(other) self.class == other.class end |