lib/roo/excel.rb in roo-0.8.4 vs lib/roo/excel.rb in roo-0.8.5
- old
+ new
@@ -136,11 +136,10 @@
}
end
# returns the type of a cell: :float, :string, :date
def celltype(row,col,sheet=nil)
- default_sheet_check if sheet == nil
sheet = @default_sheet unless sheet
row,col = normalize(row,col)
worksheet = @workbook.worksheet(sheet_no(sheet))
skip = 0
@@ -167,11 +166,10 @@
# returns all values in this row as an array
# row numbers are 1,2,3,... like in the spreadsheet
def row(rownumber,sheet=nil)
sheet = @default_sheet unless sheet
- default_sheet_check
worksheet = @workbook.worksheet(sheet_no(sheet))
#therow = worksheet.row(rownumber-1)
result = []
worksheet.row(rownumber-1).each {|cell|
if cell
@@ -194,10 +192,9 @@
def column(columnnumber,sheet=nil)
if columnnumber.class == String
columnnumber = Openoffice.letter_to_number(columnnumber)
end
sheet = @default_sheet unless sheet
- default_sheet_check
worksheet = @workbook.worksheet(sheet_no(sheet))
skip = 0
result = []
worksheet.each(skip) { |row_par|
if defined? row_par.at(columnnumber-1)