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



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

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

#__safe_options__Object



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

def __safe_options__
  false
end