Class: TSV::IntegerSerializer
- Inherits:
-
Object
- Object
- TSV::IntegerSerializer
- Defined in:
- lib/rbbt/tsv/serializers.rb
Class Method Summary collapse
Class Method Details
.dump(i) ⇒ Object
9 |
# File 'lib/rbbt/tsv/serializers.rb', line 9 def self.dump(i); [i].pack("l"); end |
.load(str) ⇒ Object
10 |
# File 'lib/rbbt/tsv/serializers.rb', line 10 def self.load(str); str.unpack("l").first; end |