README.md in table_transform-0.1.0 vs README.md in table_transform-0.2.0
- old
+ new
@@ -32,11 +32,11 @@
# Create from an array of arrays. First row column names
data = [ %w(Name Age), %w(Jane 22)]
t = TableTransform::Table.new(data)
-### Work with the table
+### Transform
# Add a new column to the far right
t.add_column('NameLength'){|row| row['Name'].size}
# Change values in existing column
t.change_column('Age'){|row| row['Age'].to_i}
@@ -53,12 +53,25 @@
# Adds rows of two tables with same header
t1 = TableTransform::Table::create_empty(%w(Col1 Col2))
t2 = TableTransform::Table::create_empty(%w(Col1 Col2))
t3 = t1 + t2
+
+### Publish
# Export as array
t.to_a
-
+
+ # Excel sheet
+ excel = TableTransform::ExcelCreator.new('output.xlsx')
+ excel.add_tab('Result', t)
+ excel.create!
+
+#### Excel Creator
+Will create an Excel Table on each tab. Name of the table will be the same as the sheet (except space replaced
+with _)
+
+Each column will be auto scaled to an approximate size based on column content.
+
## Contributing
Bug reports and pull requests are welcome on [GitHub](https://github.com/jonas-lantto/table_transform).