module BSON::Specialized
def self.included(klass)
def self.included(klass) klass.extend(ClassMethods) end
def ==(other)
- Since: - 2.0.0
Returns:
-
(true, false)
- If the objects are equal.
Parameters:
-
other
(Object
) -- The object to check against.
Other tags:
- Example: Check min key equality. -
def ==(other) self.class == other.class end
def to_bson(buffer = ByteBuffer.new)
- Since: - 2.0.0
Returns:
-
(BSON::ByteBuffer)
- The buffer with the encoded object.
Other tags:
- Example: Encode the min key value. -
def to_bson(buffer = ByteBuffer.new) buffer end