Class: TSV::FloatSerializer
- Inherits:
-
Object
- Object
- TSV::FloatSerializer
- Defined in:
- lib/rbbt/tsv/serializers.rb
Class Method Summary collapse
Class Method Details
.dump(i) ⇒ Object
20 |
# File 'lib/rbbt/tsv/serializers.rb', line 20 def self.dump(i); [i].pack("d"); end |
.load(str) ⇒ Object
21 |
# File 'lib/rbbt/tsv/serializers.rb', line 21 def self.load(str); str.unpack("d").first; end |