Class: TSV::IntegerArraySerializer

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

Class Method Summary collapse

Class Method Details

.dump(a) ⇒ Object



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

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

.load(str) ⇒ Object



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

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