Module: BSON::Float::ClassMethods
- Defined in:
- lib/bson/float.rb
Overview
Instance Method Summary collapse
-
#from_bson(bson) ⇒ Float
Deserialize an instance of a Float from a BSON double.
Instance Method Details
#from_bson(bson) ⇒ Float
Deserialize an instance of a Float from a BSON double.
60 61 62 |
# File 'lib/bson/float.rb', line 60 def from_bson(bson) from_bson_double(bson.read(8)) end |