lib/saxlsx/sheet.rb in saxlsx-0.3.0 vs lib/saxlsx/sheet.rb in saxlsx-1.0.0
- old
+ new
@@ -1,18 +1,18 @@
module Saxlsx
class Sheet
attr_reader :name
- def initialize(name, index, file_system, shared_strings)
+ def initialize(name, index, file_system, workbook)
@name = name
@index = index
@file_system = file_system
- @shared_strings = shared_strings
+ @workbook = workbook
end
def rows
- @rows ||= RowsCollection.new(@index, @file_system, @shared_strings)
+ @rows ||= RowsCollection.new(@index, @file_system, @workbook)
end
def to_csv(path)
FileUtils.mkpath path unless Dir.exists? path
File.open("#{path}/#{name}.csv", 'w') do |f|
\ No newline at end of file