examples/example.rb in fast_excel-0.2.0 vs examples/example.rb in fast_excel-0.2.1
- old
+ new
@@ -1,9 +1,9 @@
-require_relative './lib/fast_excel'
+require_relative '../lib/fast_excel'
require 'pp'
-workbook = FastExcel.open("ffi_example.xlsx", constant_memory: true)
+workbook = FastExcel.open("example.xlsx", constant_memory: true)
workbook.default_format.set(
font_size: 0, # user's default
#font_family: "Arial"
)
@@ -37,6 +37,7 @@
# date[:min] = i % 60
# date[:sec] = i % 60
# worksheet.write_datetime(i, 2, date, nil)
end
-workbook.close
+workbook.close
+puts "Saved to file example.xlsx"
\ No newline at end of file