From 9ca621e7d63431da017a6e3dfbbfb013d9f032f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Bu=CC=88nemann?= Date: Mon, 30 Oct 2017 19:51:59 +0100 Subject: [PATCH] [ci skip] Use ruby 1.9 hash style in README --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 2ae2f36..4779505 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ end # for the workbook or a single worksheet. The SST has to be kept in memory, # so do not use it if you have a huge amount of rows or a little duplication # of content across cells. A single SST is used for the whole workbook. -xlsx.write_worksheet('SheetWithSST', :use_shared_strings => true) do |sheet| +xlsx.write_worksheet('SheetWithSST', use_shared_strings: true) do |sheet| sheet << ['the', 'same', 'old', 'story'] sheet << ['the', 'old', 'same', 'story'] sheet << ['old', 'the', 'same', 'story'] @@ -72,7 +72,7 @@ end # "Number stored as text". Dates and times must be in the ISO-8601 format and # numeric values must contain only numbers and an optional decimal separator. # The strings true and false are detected as boolean values. -xlsx.write_worksheet('SheetWithAutoFormat', :auto_format => true) do |sheet| +xlsx.write_worksheet('SheetWithAutoFormat', auto_format: true) do |sheet| # these two rows will be identical in the xlsx-output sheet << [true, 11.85, DateTime.parse('2050-01-01T12:00'), Date.parse('1984-01-01')] sheet << ['true', '11.85', '2050-01-01T12:00', '1984-01-01'] @@ -84,10 +84,10 @@ xlsx.close io.close # Changing the default font from Calibri, 12pt, Swiss -Xlsxtream::Workbook.new(io, :font => { - :name => 'Times New Roman', - :size => 10, # size in pt - :family => 'Roman' # Swiss, Modern, Script, Decorative +Xlsxtream::Workbook.new(io, font: { + name: 'Times New Roman', + size: 10, # size in pt + family: 'Roman' # Swiss, Modern, Script, Decorative }) ```