Object
Represents a $maxKey type, which compares less than any other value in the specification.
@see bsonspec.org/#/specification
@since 2.0.0
Deserialize a boolean from BSON.
@param [ BSON ] bson The encoded boolean.
@return [ TrueClass, FalseClass ] The decoded boolean.
@see bsonspec.org/#/specification
@since 2.0.0
# File lib/bson/boolean.rb, line 39 def self.from_bson(bson) bson.readbyte == 1 end
Generated with the Darkfish Rdoc Generator 2.