Commit 7d13d80
committed
stdlib: the headers keyword for CSV.foreach can take String
The headers keyword option of `CSV.foreach` can take String, Symbol and
Array too. Therefore, this adds them to the type definition.
refs:
* https://docs.ruby-lang.org/en/3.3/CSV.html#method-c-foreach
* https://docs.ruby-lang.org/en/3.3/CSV.html#class-CSV-label-Options+for+Parsing
Note:
In https://github.com/ruby/rbs/pull/1738/files#r1468802569, @m11o
was aware of the lackness of the types, but they determined to support
only "true" value at first.1 parent 2a6c00b commit 7d13d80
2 files changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1722 | 1722 | | |
1723 | 1723 | | |
1724 | 1724 | | |
1725 | | - | |
1726 | | - | |
| 1725 | + | |
| 1726 | + | |
1727 | 1727 | | |
1728 | 1728 | | |
1729 | 1729 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
30 | 36 | | |
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
34 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
35 | 47 | | |
36 | 48 | | |
37 | 49 | | |
| |||
0 commit comments