lib/rspreadsheet/worksheet.rb in rspreadsheet-0.4.4 vs lib/rspreadsheet/worksheet.rb in rspreadsheet-0.4.5
- old
+ new
@@ -104,11 +104,11 @@
case params.length
when 0 then raise 'Not implemented yet' #TODO: return list of all cells
when 1..2
r,c = Rspreadsheet::Tools.a2c(*params)
row(r).andand.cell(c)
- else raise Exception.new('Wrong number of arguments.')
+ else raise ArgumentError.new('Wrong number of arguments.')
end
end
alias :cell :cells
def column(param)
r,coli = Rspreadsheet::Tools.a2c(1,param)
@@ -126,11 +126,12 @@
end
else
super
end
end
+ alias :rowcount :size
def used_rows_range
- 1..self.first_unused_row_index-1
+ 1..self.rowcount
end
end
end