README.rdoc in osheet-1.0.0.rc.1 vs README.rdoc in osheet-1.0.0.rc.2
- old
+ new
@@ -8,21 +8,24 @@
$ gem install osheet
== Basic Example
- require 'osheet'
+This example uses the Xmlss writer provided by Osheet::Xmlss (https://github.com/kellyredding/osheet-xmlss).
+ require 'osheet/xmlss'
+
fields = ['Sex', 'Age', 'Height', 'Weight']
data = {
'Tom' => ['M', 52, "6'2\"", '220 lbs.'],
'Dick' => ['M', 33, "6'5\"", '243 lbs.'],
'Sally' => ['F', 29, "5'3\"", '132 lbs.']
}
# this will dump the above data to a single-sheet workbook w/ no styles
+ # - this example is using the Xmlss writer (https://github.com/kellyredding/xmlss)
- Osheet::Workbook.new {
+ Osheet::Workbook.new(Osheet::XmlssWriter.new) {
title "basic"
template(:column, :data) { |field, index|
width 80
meta(