class Dataframe::CSVBuilder

Defined in:

builder/csv_builder.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(io : IO, separator : Char = DEFAULT_SEPARATOR, quote_char : Char = DEFAULT_QUOTE_CHAR) #

Creates a builder that will write to the given IO.


[View source]

Instance Method Detail

def add_row(values : Array(Type)) : Nil #

Appends the given values as a single row, and then a newline.


[View source]
def build(headers : Array(String), rows : Array(Array(Type))) #

[View source]