Last active
December 28, 2015 10:59
-
-
Save volo1st/7490577 to your computer and use it in GitHub Desktop.
String interpolation testing for Ruby gem `spreadsheet`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spreadsheet' | |
Spreadsheet.client_encoding = 'UTF-8' | |
test_data = {:foo => 'a/a', :bar => 'normal'} | |
book = Spreadsheet::Workbook.new | |
sheet = book.create_worksheet :name => "#{test_data[:foo]}" | |
sheet = book.create_worksheet :name => "#{test_data[:bar]}" | |
book.write "test.xls" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment