Class: Moped::BSON::MinKey
Overview
Represents the minimum key value in the database.
Class Method Summary collapse
-
.===(other) ⇒ true, false
Check equality on the object.
-
.__bson_dump__(io, key) ⇒ Object
Dump the min key to the raw bytes.
-
.__bson_load__(io) ⇒ Class
Load the min key from the raw data.
Class Method Details
.===(other) ⇒ true, false
Check equality on the object.
19 20 21 |
# File 'lib/moped/bson/min_key.rb', line 19 def ===(other) other == self end |
.__bson_dump__(io, key) ⇒ Object
Dump the min key to the raw bytes.
44 45 46 47 |
# File 'lib/moped/bson/min_key.rb', line 44 def __bson_dump__(io, key) io << Types::MIN_KEY io << key.to_bson_cstring end |
.__bson_load__(io) ⇒ Class
Load the min key from the raw data.
33 |
# File 'lib/moped/bson/min_key.rb', line 33 def __bson_load__(io); self; end |