Class: TSV::FloatSerializer

Inherits:
Object
  • Object
show all
Defined in:
lib/rbbt/tsv/serializers.rb

Class Method Summary collapse

Class Method Details

.dump(i) ⇒ Object



14
# File 'lib/rbbt/tsv/serializers.rb', line 14

def self.dump(i); [i].pack("d"); end

.load(str) ⇒ Object



15
# File 'lib/rbbt/tsv/serializers.rb', line 15

def self.load(str); str.unpack("d").first; end