From 74aa11b3f2261ccd40f1d1498a3b416f25a65aa4 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Thu, 12 Sep 2024 03:35:37 +0900 Subject: [PATCH] stdlib: Add types for CSV::Table#each --- stdlib/csv/0/csv.rbs | 6 +++--- test/stdlib/CSV_Table_test.rb | 24 ++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 test/stdlib/CSV_Table_test.rb diff --git a/stdlib/csv/0/csv.rbs b/stdlib/csv/0/csv.rbs index 63ede413e..07bda9ad9 100644 --- a/stdlib/csv/0/csv.rbs +++ b/stdlib/csv/0/csv.rbs @@ -3002,7 +3002,7 @@ end # table['Name'] # => ["Foo", "Bar", "Baz"] # class CSV::Table[out Elem] < Object - include Enumerable[untyped] + include Enumerable[Elem] extend Forwardable #