From 0fb70add991964be8c7488ffb2bc81c77d807302 Mon Sep 17 00:00:00 2001 From: deepaklakhera Date: Thu, 9 Jan 2025 11:43:08 +0530 Subject: [PATCH] Fixing NoMatchingPatternError --- lib/rhykane/writer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rhykane/writer.rb b/lib/rhykane/writer.rb index 49fa977..c039ad1 100644 --- a/lib/rhykane/writer.rb +++ b/lib/rhykane/writer.rb @@ -37,8 +37,8 @@ def puts(*rows) end private - def row_to_csv(row) + return ::CSV::Row.new([], []) if row.nil? case row in **row ::CSV::Row.new(row.keys, row.values)