Class: EasyCSV::ComaSeparator
- Inherits:
-
Object
- Object
- EasyCSV::ComaSeparator
- Defined in:
- lib/easycsv/coma_separator.rb,
lib/easycsv/coma_separator.rb
Instance Method Summary collapse
-
#initialize(row) ⇒ ComaSeparator
constructor
A new instance of ComaSeparator.
- #separate ⇒ Object
Constructor Details
#initialize(row) ⇒ ComaSeparator
Returns a new instance of ComaSeparator.
4 5 6 |
# File 'lib/easycsv/coma_separator.rb', line 4 def initialize(row) @row = row end |
Instance Method Details
#separate ⇒ Object
8 9 10 |
# File 'lib/easycsv/coma_separator.rb', line 8 def separate @row.join(',') end |