Module: Moped::BSON::Extensions::Float

Included in:
Float
Defined in:
lib/moped/bson/extensions/float.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#__bson_dump__(io, key) ⇒ Object



13
14
15
16
17
# File 'lib/moped/bson/extensions/float.rb', line 13

def __bson_dump__(io, key)
  io << Types::FLOAT
  io << key.to_bson_cstring
  io << [self].pack(FLOAT_PACK)
end