Skip to content

Commit

Permalink
Updated README with configure example
Browse files Browse the repository at this point in the history
  • Loading branch information
paulspringett committed Jul 31, 2012
1 parent 4e95892 commit 1c0d213
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Expand Up @@ -205,6 +205,18 @@ def index
end
```

### CSV configuration

To configure how the CSV output is formatted you can define a configure block, like so:

```ruby
CsvShaper.configure do |config|
config.col_sep = "\t"
config.write_headers = false
end

```

##### Hat tips

* [Jbuilder](https://github.com/rails/jbuilder/) for inspiration for the DSL
Expand Down

0 comments on commit 1c0d213

Please sign in to comment.