summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSutou Kouhei <kou@clear-code.com>2020-08-23 06:28:12 +0900
committerSutou Kouhei <kou@cozmixng.org>2020-11-24 09:33:55 +0900
commit0543db40d8a340c253fb5100ee0627b7d5f62448 (patch)
tree3e06c3d86a20eb212fd516379c65677e4d8e205a
parentd2913f912fbcfd2265ce18b942a9600c86f43273 (diff)
[ruby/csv] Don't change initialize_copy's return value
https://github.com/ruby/csv/commit/cf3b60db1c
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3804
-rw-r--r--lib/csv/row.rb3
1 files changed, 2 insertions, 1 deletions
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.