class RubyXL::Writer::WorksheetWriter

Public Class Methods

new(workbook, sheet_index = 0) click to toggle source
# File lib/rubyXL/writer/worksheet_writer.rb, line 5
def initialize(workbook, sheet_index = 0)
  @workbook = workbook
  @sheet_index = sheet_index
  @worksheet = @workbook.worksheets[@sheet_index]
end

Public Instance Methods

filepath() click to toggle source
# File lib/rubyXL/writer/worksheet_writer.rb, line 11
def filepath
  File.join('xl', 'worksheets', "sheet#{@sheet_index + 1}.xml")
end
ooxml_object() click to toggle source
# File lib/rubyXL/writer/worksheet_writer.rb, line 15
def ooxml_object
  @worksheet
end