diff options
author | Sutou Kouhei <kou@clear-code.com> | 2020-08-23 06:28:12 +0900 |
---|---|---|
committer | Sutou Kouhei <kou@cozmixng.org> | 2020-11-24 09:33:55 +0900 |
commit | 0543db40d8a340c253fb5100ee0627b7d5f62448 (patch) | |
tree | 3e06c3d86a20eb212fd516379c65677e4d8e205a | |
parent | d2913f912fbcfd2265ce18b942a9600c86f43273 (diff) | |
download | ruby-0543db40d8a340c253fb5100ee0627b7d5f62448.tar.gz |
[ruby/csv] Don't change initialize_copy's return value
https://github.com/ruby/csv/commit/cf3b60db1c
-rw-r--r-- | lib/csv/row.rb | 3 |
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. |