Class: TSVAdapter::FloatSerializer

Inherits:
Object
  • Object
show all
Defined in:
lib/scout/persist/tsv/serialize.rb

Class Method Summary collapse

Class Method Details

.dump(i) ⇒ Object



20
# File 'lib/scout/persist/tsv/serialize.rb', line 20

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

.load(str) ⇒ Object



21
# File 'lib/scout/persist/tsv/serialize.rb', line 21

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