Class: TSVAdapter::StrictIntegerArraySerializer

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

Class Method Summary collapse

Class Method Details

.dump(a) ⇒ Object



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

def self.dump(a); a.pack("l*"); end

.load(str) ⇒ Object



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

def self.load(str); a = str.unpack("l*"); end