1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-04 23:58:01 +00:00

Add missing link to recent til

This commit is contained in:
jbranchaud
2020-03-27 16:54:13 -05:00
parent 6a54d5e6c6
commit 461e8eea23

View File

@@ -1,10 +1,11 @@
# Create A CSV::Table Object
When you parse a file or string using `CSV.parse` (with `headers = true`) you
get a [`CSV::Table`]() object in response. This object can be used to read what
was in a file or it can be used to create a new file. It is also handy as a
potential test object if you want to assume, but omit, file reading in a unit
test.
get a
[`CSV::Table`](https://ruby-doc.org/stdlib-2.5.1/libdoc/csv/rdoc/CSV/Table.html)
object in response. This object can be used to read what was in a file or it
can be used to create a new file. It is also handy as a potential test object
if you want to assume, but omit, file reading in a unit test.
You can create a `CSV::Table` one of the following two ways. First, with a file: