examples/formula.rb in osheet-0.10.0 vs examples/formula.rb in osheet-1.0.0.rc.1
- old
+ new
@@ -9,11 +9,11 @@
# this will dump the above data to a single-sheet workbook w/ no styles
puts "building examples/formula.rb ..."
-Osheet::Workbook.new {
+Osheet::Workbook.new(Osheet::XmlssWriter.new(:pp => 2)) {
title "formula example"
worksheet {
name "Formula"
row {
cell { data 1 }
@@ -36,8 +36,8 @@
# 6 will change into 5 when formula gets recalculated
data 6
}
}
}
-}.to_file('examples/formula.xls', :pp => 2)
+}.to_file('examples/formula.xls')
puts "open examples/formula.xls"