Class: TSVAdapter::TSVSerializer

Inherits:
Object
  • Object
show all
Defined in:
lib/scout/persist/tsv/serialize.rb

Class Method Summary collapse

Class Method Details

.dump(tsv) ⇒ Object



89
90
91
# File 'lib/scout/persist/tsv/serialize.rb', line 89

def self.dump(tsv)
  tsv.to_s
end

.load(string) ⇒ Object



93
94
95
# File 'lib/scout/persist/tsv/serialize.rb', line 93

def self.load(string)
  TSV.open StringIO.new(string)
end