Module: Oxcelix::Workbookhelper

Included in:
Workbook
Defined in:
lib/oxcelix/workbook.rb

Overview

Helper methods for the Workbook class

Instance Method Summary collapse

Instance Method Details

#[](sheetname = String) ⇒ Object

Examples:

Select a sheet

w = Workbook.new('Example.xlsx')
sheet = w["Examplesheet"]

10
11
12
# File 'lib/oxcelix/workbook.rb', line 10

def [] (sheetname=String)
  @sheets.select{|s| s.name==sheetname}[0]
end