lib/write_xlsx/workbook.rb in write_xlsx-0.85.7 vs lib/write_xlsx/workbook.rb in write_xlsx-0.85.8

- old
+ new

@@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- +# frozen_string_literal: true require 'write_xlsx/package/xml_writer_simple' require 'write_xlsx/package/packager' require 'write_xlsx/sheets' require 'write_xlsx/worksheet' require 'write_xlsx/chartsheet' @@ -970,11 +971,12 @@ # # Add a string to the shared string table, if it isn't already there, and # return the string index. # - def shared_string_index(str, params = {}) #:nodoc: - @shared_strings.index(str, params) + EMPTY_HASH = {}.freeze + def shared_string_index(str) #:nodoc: + @shared_strings.index(str, EMPTY_HASH) end def str_unique # :nodoc: @shared_strings.unique_count end