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



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

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