Permalink
Browse files

updated readme

  • Loading branch information...
1 parent 1a8b48d commit 26b3440dce99342f852cbde131154f2406b4a1e6 @FabricioFFC committed Sep 13, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 README.textile
View
@@ -8,15 +8,17 @@ pre. gem install to_worksheet
h2. Example
-pre.
+<pre>
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
+</pre>
h2. Maintainers

0 comments on commit 26b3440

Please sign in to comment.