Class: RubyXL::Writer::WorksheetWriter
Instance Method Summary
collapse
#add_to_zip, #render_xml, #write
Constructor Details
#initialize(workbook, sheet_index = 0) ⇒ WorksheetWriter
5
6
7
8
9
|
# 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
|
Instance Method Details
#filepath ⇒ Object
11
12
13
|
# File 'lib/rubyXL/writer/worksheet_writer.rb', line 11
def filepath
File.join('xl', 'worksheets', "sheet#{@sheet_index + 1}.xml")
end
|
#ooxml_object ⇒ Object
15
16
17
|
# File 'lib/rubyXL/writer/worksheet_writer.rb', line 15
def ooxml_object
@worksheet
end
|