Module: Moped::BSON::Extensions::FalseClass

Included in:
FalseClass
Defined in:
lib/moped/bson/extensions/false_class.rb

Instance Method Summary collapse

Instance Method Details

#__bson_dump__(io, key) ⇒ Object



7
8
9
10
11
# File 'lib/moped/bson/extensions/false_class.rb', line 7

def __bson_dump__(io, key)
  io << Types::BOOLEAN
  io << key.to_bson_cstring
  io << NULL_BYTE
end

#__safe_options__Object



13
14
15
# File 'lib/moped/bson/extensions/false_class.rb', line 13

def __safe_options__
  false
end