lib/osheet/workbook.rb in osheet-0.3.0 vs lib/osheet/workbook.rb in osheet-0.4.0

- old
+ new

@@ -25,9 +25,14 @@ def attributes { :title => @title } end + def use(mixin) + (mixin.styles || []).each{ |s| @styles << s } + (mixin.templates || []).each{ |t| @templates << t } + end + def writer XmlssWriter::Base.new(:workbook => self) end [:to_data, :to_file].each do |meth|