Module: SpreadsheetToArray

Defined in:
lib/spreadsheet_to_array.rb

Overview

This module intent to convert a spreadsheet into a matrix (Array of Array). Currently only Excel is supported, Google Spreadheets data can be read directly but a wrapper could be added in this module.

Examples:

filepath = 'test_file.xls'
bytes    = IO::read(filepath)
excel    = SpreadsheetToArray::FromExcel.new(bytes)
puts excel.values

Defined Under Namespace

Classes: FromExcel