-
-
Save Dysp/f7acf6b0aedcc2abacaed6d4c48e1de0 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
def extract_values(sheets) | |
values = Array.new | |
p values | |
sheets.each do |sheet| | |
values << sheet.map { |row| row[1].value.to_f } | |
end | |
p values | |
return values | |
end | |
# [] | |
# NoMethodError: undefined method `[]' for nil:NilClass | |
# from kincomwip.rb:47:in `block (2 levels) in extract_values' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment