Class: SerializeWithCoder::CSVCoder

Inherits:
Object
  • Object
show all
Defined in:
lib/coders/csv_coder.rb

Instance Method Summary collapse

Instance Method Details

#dump(obj) ⇒ Object



8
9
10
# File 'lib/coders/csv_coder.rb', line 8

def dump(obj)
  obj.to_a.join(',')
end

#load(data) ⇒ Object



4
5
6
# File 'lib/coders/csv_coder.rb', line 4

def load(data)
  data.to_s.split(',')
end