Last active
May 4, 2016 13:04
-
-
Save Dysp/7392e44edd3d951318c5666c5f1827d0 to your computer and use it in GitHub Desktop.
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
workbook = RubyXL::Parser.parse("testdb.xlsx") | |
worksheet = workbook[0] | |
puts worksheet[0].size.to_s | |
worksheet.each do |row| | |
val = row[0].value | |
if val != nil | |
puts val.to_s | |
else | |
puts "Done" | |
break | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment