Last active
December 28, 2016 15:08
-
-
Save stevendaniels/02fc3ef2057b95b2fc02b10a29ce2053 to your computer and use it in GitHub Desktop.
Trying to duplicate Roo issue 344
This file contains hidden or 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 'roo' | |
require 'roo/version' | |
puts Roo::VERSION | |
filename = "./test.xlsx" | |
file = File.open(filename) | |
spreadsheet = Roo::Spreadsheet.open(file, extension: :xlsx) | |
sheet_names = spreadsheet.sheets | |
sheet_names.each do |sheet_name| | |
spreadsheet.sheet(sheet_name).each do |row| | |
p row | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment