Methods

Class/Module Index [+]

Quicksearch

Moped::BSON::Extensions::Time

Public Instance Methods

__bson_dump__(io, key) click to toggle source
# File lib/moped/bson/extensions/time.rb, line 13
def __bson_dump__(io, key)
  io << Types::TIME
  io << key.to_bson_cstring
  io << [(to_i * 1000) + (usec / 1000)].pack(INT64_PACK)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.