0.0
No commit activity in last 3 years
No release in over 3 years
Only to excel for now.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3.0
 Project Readme

ToWorksheet

Generate a worksheet from an array.

Installation

gem install to_worksheet

Example

  require 'rubygems'
  require 'to_worksheet'

  my_array = [['apple', 1], ['orange', 0.5], ['pineapple', 2], ['watermelon', 3]]
  worksheet = my_array.to_worksheet(:header => ['fruit', 'price'], :name => 'Price List')

  file  = File.new("/tmp/worksheet.xls", "w")
  file.puts worksheet
  file.close

Maintainers

How to collaborate

If you would collaborate, you can create a fork, apply the modification and submit a pull request :)