Phlex.CSV (phlex v0.3.0)

Copy Markdown View Source

Object-oriented CSV views aligned with Phlex Ruby 2.4.1.

Subclass by use Phlex.CSV and implement row_template/1 (or multi-arity via around_row/1). You must define escape_csv_injection?/0 — there is no default.

Summary

Functions

Renders a CSV view into a binary (or into an iodata collector when provided).

Appends a column to the current row. Only valid inside row_template/1.

Functions

call(csv, view_module, opts \\ [])

Renders a CSV view into a binary (or into an iodata collector when provided).

column(header, value)

Appends a column to the current row. Only valid inside row_template/1.