class

CSV2::Writer

Inherits Reference < Object

CSV writer with an API matching Crystal's stdlib CSV builder.

Constructors

new(io : IO, separator : Char = ',', quote_char : Char = '"', quoting : Quoting = Quoting::RFC)
Source

Class methods

build(separator : Char = ',', quote_char : Char = '"', quoting : Quoting = Quoting::RFC, &) : String
Source
build(io : IO, separator : Char = ',', quote_char : Char = '"', quoting : Quoting = Quoting::RFC, &) : Nil
Source

Instance methods

cell
Source
quote_cell(value : String) : Nil
Source
row(values : Enumerable) : Nil
Source
row(*values) : Nil
Source

Nested types