Class: TSV::StrictIntegerArraySerializer

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

Class Method Summary collapse

Class Method Details

.dump(a) ⇒ Object



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

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

.load(str) ⇒ Object



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

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