lib/roo/google.rb in roo-1.0.2 vs lib/roo/google.rb in roo-1.1.0

- old
+ new

@@ -170,13 +170,14 @@ return @cell[sheet]["#{row},#{col}"] end # returns the type of a cell: # * :float - # * :string, + # * :string # * :date # * :percentage + # * :formula # * :time def celltype(row, col, sheet=nil) sheet = @default_sheet unless sheet read_cells(sheet) unless @cells_read[sheet] row,col = normalize(row,col) @@ -202,10 +203,10 @@ end # true, if there is a formula def formula?(row,col,sheet=nil) sheet = @default_sheet unless sheet - read_cells unless @cells_read[sheet] + read_cells(sheet) unless @cells_read[sheet] row,col = normalize(row,col) formula(row,col) != nil end # returns each formula in the selected sheet as an array of elements