Class: TSVAdapter::IntegerSerializer
- Inherits:
-
Object
- Object
- TSVAdapter::IntegerSerializer
- Defined in:
- lib/scout/persist/tsv/serialize.rb
Class Method Summary collapse
Class Method Details
.dump(i) ⇒ Object
15 |
# File 'lib/scout/persist/tsv/serialize.rb', line 15 def self.dump(i); [i].pack("l"); end |
.load(str) ⇒ Object
16 |
# File 'lib/scout/persist/tsv/serialize.rb', line 16 def self.load(str); str.unpack("l").first; end |