delicious

crafterm/comma - GitHub

A murb'ed feed, posted about 13 years ago filed in ruby, rails, gem, plugin, export, model, csv, dsl & system:unfiled.

If I ever need good CSV exports:

Comma is a CSV (ie. comma separated values) generation extension for Ruby objects, that lets you seamlessly define a CSV output format via a small DSL. Comma works well on pure Ruby objects with attributes, as well as complex ones such as ActiveRecord objects with associations, extensions, etc. It doesn’t distinguish between attributes, methods, associations, extensions, etc. - they all are considered equal and invoked identically via the Comma DSL description. Multiple different CSV output descriptions can also be defined.

Go to the original link.