summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/package.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2011-11-27 18:11:42 +0900
committerRandy Morgan <[email protected]>2011-11-27 18:11:42 +0900
commit4d16bfc43780e5d3f7368625700b583e3e98217a (patch)
treebd477483555fe52f2690e7f15743d93b9667adef /lib/axlsx/package.rb
parent11303a4d6664d9a7ff7bc408035d2ab70378a375 (diff)
downloadcaxlsx-4d16bfc43780e5d3f7368625700b583e3e98217a.tar.gz
caxlsx-4d16bfc43780e5d3f7368625700b583e3e98217a.zip
adding in row_style and col_style methods to worksheet and active record 'acts_as_axlsx' to provide to_xlsx.
Diffstat (limited to 'lib/axlsx/package.rb')
-rw-r--r--lib/axlsx/package.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/axlsx/package.rb b/lib/axlsx/package.rb
index d9455f14..921646da 100644
--- a/lib/axlsx/package.rb
+++ b/lib/axlsx/package.rb
@@ -15,7 +15,12 @@ module Axlsx
@core.creator = options[:author] || @core.creator
yield self if block_given?
end
-
+
+ # Accepts a ruport table for serialization to xlsx
+ # @param [Table] table a ruport Table object
+ def ruport_table(table)
+ puts table
+ end
# The workbook this package will serialize or validate.
# @return [Workbook] If no workbook instance has been assigned with this package a new Workbook instance is returned.