Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lib/csv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1025,8 +1025,7 @@ class << self
# CSV.instance(s0) {|csv| :foo } # => :foo
def instance(data = $stdout, **options)
# create a _signature_ for this method call, data object and options
sig = [data.object_id] +
options.values_at(*DEFAULT_OPTIONS.keys)
sig = [self, data.object_id, options]

# fetch or create the instance for this signature
@@instances ||= Hash.new
Expand Down