Class: Kor::Output::Csv
Direct Known Subclasses
Constant Summary collapse
- DELIM =
","
Instance Method Summary collapse
Methods inherited from Base
#finish, #initialize, #io, #parse
Constructor Details
This class inherits a constructor from Kor::Output::Base
Instance Method Details
#head(keys) ⇒ Object
8 9 10 |
# File 'lib/kor/output/csv.rb', line 8 def head(keys) io.puts keys.to_csv(col_sep: self.class::DELIM) end |
#puts(values) ⇒ Object
12 13 14 |
# File 'lib/kor/output/csv.rb', line 12 def puts(values) io.puts values.to_csv(col_sep: self.class::DELIM) end |