From 292f7e6cf9f1fd4fb5e584f8d7633f58465b4e4d Mon Sep 17 00:00:00 2001 From: Aleksey Strizhak Date: Tue, 13 Nov 2018 16:35:13 +0500 Subject: [PATCH] revert bound of default_sheet argument --- lib/roo/formatters/csv.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/roo/formatters/csv.rb b/lib/roo/formatters/csv.rb index 595a6095..1c30c07a 100644 --- a/lib/roo/formatters/csv.rb +++ b/lib/roo/formatters/csv.rb @@ -1,7 +1,7 @@ module Roo module Formatters module CSV - def to_csv(filename = nil, separator: ",", sheet: default_sheet) + def to_csv(filename = nil, sheet = default_sheet, separator: ",") if filename File.open(filename, "w") do |file| write_csv_content(file, sheet, separator)