Skip to content

Instantly share code, notes, and snippets.

@gouf
Created February 23, 2014 20:52
Show Gist options
  • Save gouf/9177099 to your computer and use it in GitHub Desktop.
Save gouf/9177099 to your computer and use it in GitHub Desktop.
xls 形式のファイルを生成してみる。A0 に「test.」が保存されたファイルが作られる。
require 'spreadsheet'
book = Spreadsheet::Workbook.new
sheet = book.create_worksheet
sheet[0,0] = 'test.'
book.write('example.xls')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment