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(encoded = ''.force_encoding(BINARY)) ⇒ String
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.
35 36 37 |
# File 'lib/bson/specialized.rb', line 35 def ==(other) self.class == other.class end |