Skip to content

Instantly share code, notes, and snippets.

@Dysp
Last active May 4, 2016 13:04
Show Gist options
  • Save Dysp/7392e44edd3d951318c5666c5f1827d0 to your computer and use it in GitHub Desktop.
Save Dysp/7392e44edd3d951318c5666c5f1827d0 to your computer and use it in GitHub Desktop.
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