Class: TSV::IntegerSerializer

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

Class Method Summary collapse

Class Method Details

.dump(i) ⇒ Object



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

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

.load(str) ⇒ Object



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

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