Created
March 29, 2016 15:19
-
-
Save anonymous/037b586feb895ceb7e9d 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
## Henter gems | |
require 'prawn' | |
require 'squid' | |
require 'roo' | |
excel_ark = Dir.glob('*.xlsx') | |
puts excel_ark | |
excel_ark.each do |navn| | |
navn.slice!(".xlsx") | |
puts navn | |
end | |
=> excel.xlsx | |
=> excel2.xlsx | |
=> excel | |
=> excel2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment