Class: TSVAdapter::BinarySerializer
- Inherits:
-
Object
- Object
- TSVAdapter::BinarySerializer
- Defined in:
- lib/scout/persist/tsv/serialize.rb
Class Method Summary collapse
Class Method Details
.dump(o) ⇒ Object
10 |
# File 'lib/scout/persist/tsv/serialize.rb', line 10 def self.dump(o); [o].pack('m'); end |
.load(str) ⇒ Object
11 |
# File 'lib/scout/persist/tsv/serialize.rb', line 11 def self.load(str); str.unpack('m').first; end |