Module: BSON::Specialized
Overview
Provides behaviour to special values that exist in the BSON spec that don’t have a native type, like $minKey and $maxKey.
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#==(other) ⇒ true, false
Determine if the min key is equal to another object.
-
#to_bson(buffer = ByteBuffer.new) ⇒ BSON::ByteBuffer
Encode the min key - has no value since it only needs the type and field name when being encoded.
Instance Method Details
#==(other) ⇒ true, false
Determine if the min key is equal to another object.
37 38 39 |
# File 'lib/bson/specialized.rb', line 37 def ==(other) self.class == other.class end |
#to_bson(buffer = ByteBuffer.new) ⇒ BSON::ByteBuffer
Encode the min key - has no value since it only needs the type and field name when being encoded.
50 51 52 |
# File 'lib/bson/specialized.rb', line 50 def to_bson(buffer = ByteBuffer.new) buffer end |