Skip to content

Instantly share code, notes, and snippets.

Created March 29, 2016 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/037b586feb895ceb7e9d to your computer and use it in GitHub Desktop.
Save anonymous/037b586feb895ceb7e9d to your computer and use it in GitHub Desktop.
## 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