From 0543db40d8a340c253fb5100ee0627b7d5f62448 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Sun, 23 Aug 2020 06:28:12 +0900 Subject: [ruby/csv] Don't change initialize_copy's return value https://github.com/ruby/csv/commit/cf3b60db1c --- lib/csv/row.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/csv/row.rb b/lib/csv/row.rb index fd293a0326..57dc14332e 100644 --- a/lib/csv/row.rb +++ b/lib/csv/row.rb @@ -49,8 +49,9 @@ class CSV def_delegators :@row, :empty?, :length, :size def initialize_copy(other) - super + super_return_value = super @row = @row.collect(&:dup) + super_return_value end # Returns +true+ if this is a header row. -- cgit v1.2.3