Module: Moped::BSON::Extensions::Integer::ClassMethods

Included in:
Integer
Defined in:
lib/moped/bson/extensions/integer.rb

Instance Method Summary collapse

Instance Method Details

#__bson_load__(io, bignum = false) ⇒ Object



29
30
31
# File 'lib/moped/bson/extensions/integer.rb', line 29

def __bson_load__(io, bignum=false)
  io.read(4).unpack(INT32_PACK)[0]
end