Created
June 15, 2016 13:28
-
-
Save Dysp/bd5a95bc82d77b603a4641c790fdb61a 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 get_values(sheets) | |
sheets.flat_map do |sheet| | |
array = Array.new | |
array << sheet.flat_map do |row| | |
row ? row.cells.map { |cell| cell.value if cell } : [] | |
end | |
return array | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment