Created
March 29, 2016 15:04
-
-
Save anonymous/64bede133d8057881071 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
excel_navn.each do |navn| | |
$excel_name = navn | |
puts "Alrighty. Hvad er forsøgspersonens navn? (FX: BR253K)" | |
$fp = gets.chomp | |
puts "Opretter PDF-dokumentet for forsøgsperson:" + $fp + ". Hent en kop kaffe imens." | |
$xlsx = Roo::Spreadsheet.open($excel_name) | |
array = $xlsx.sheets | |
Prawn::Document.generate($excel_name + ".pdf") do | |
array.each do |ark| | |
calculate(ark) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment