Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
martijn committed May 30, 2023
1 parent 82dabc1 commit 9b03df1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ sheet.parse_headers!
sheet[0] # => {"header1" => "value1", "header2" => "value2"}
```

Because of the way Ruby hashes work will raise `Xsv::DuplicateHeaders` if it detects
duplicate values in the header row when calling `#parse_headers!` or when opening
a workbook with `parse_headers: true`.
Xsv will raise `Xsv::DuplicateHeaders` if it detects duplicate values in the header row when calling
`#parse_headers!` or when opening a workbook with `parse_headers: true` to ensure hash keys are unique.

`Xsv::Sheet` implements `Enumerable` so along with `#each`
you can call methods like `#first`, `#filter`/`#select`, and `#map` on it.
Expand Down

0 comments on commit 9b03df1

Please sign in to comment.