Module: Moped::BSON::Extensions::Boolean::ClassMethods

Included in:
FalseClass, TrueClass
Defined in:
lib/moped/bson/extensions/boolean.rb

Instance Method Summary collapse

Instance Method Details

#__bson_load__(io) ⇒ Object



9
10
11
# File 'lib/moped/bson/extensions/boolean.rb', line 9

def __bson_load__(io)
  io.readbyte == 1
end