Class: TSV::TSVSerializer

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

Class Method Summary collapse

Class Method Details

.dump(tsv) ⇒ Object



89
90
91
# File 'lib/rbbt/tsv/serializers.rb', line 89

def self.dump(tsv)
  tsv.to_s
end

.load(string) ⇒ Object



93
94
95
# File 'lib/rbbt/tsv/serializers.rb', line 93

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