1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/csv] Don't change initialize_copy's return value

cf3b60db1c
This commit is contained in:
Sutou Kouhei 2020-08-23 06:28:12 +09:00 committed by Sutou Kouhei
parent d2913f912f
commit 0543db40d8
Notes: git 2020-11-24 09:34:34 +09:00

View file

@ -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.