Skip to content

Instantly share code, notes, and snippets.

@nori3tsu
Last active August 29, 2015 14:07
Show Gist options
  • Save nori3tsu/7870ad46d89abcf08beb to your computer and use it in GitHub Desktop.
Save nori3tsu/7870ad46d89abcf08beb to your computer and use it in GitHub Desktop.
RubyのExcel操作ライブラリ'Roo'の実装例
require 'roo'
s = Roo::Excelx.new('test.xlsx')
s.default_sheet = s.sheets[0]
columns = ('A'..'Z')
rows = (1..10)
columns.each do |c|
rows.each do |r|
s.cell(c, r)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment