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



66
67
68
# File 'lib/rbbt/tsv/serializers.rb', line 66

def self.dump(tsv)
  tsv.to_s
end

.load(string) ⇒ Object



70
71
72
# File 'lib/rbbt/tsv/serializers.rb', line 70

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