Class: EasyCSV::DoubleQuoteWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/easycsv/double_quote_wrapper.rb,
lib/easycsv/double_quote_wrapper.rb

Instance Method Summary collapse

Constructor Details

#initialize(row) ⇒ DoubleQuoteWrapper

Returns a new instance of DoubleQuoteWrapper.



4
5
6
# File 'lib/easycsv/double_quote_wrapper.rb', line 4

def initialize(row)
  @row = row
end

Instance Method Details

#wrapObject



8
9
10
# File 'lib/easycsv/double_quote_wrapper.rb', line 8

def wrap
  @row.map{|e| "\"#{e}\""}
end