lib/roo/excel.rb
# Get the contents of a cell, accounting for the
# way formula stores the value
Get the contents of a cell, accounting for the
way formula stores the value
Get the contents of a cell accounting for the way formula stores the value
def read_cell_content(row, idx)
    cell = row.at(idx)
    cell = row[idx] if row[idx].class == Spreadsheet::Link
    cell = cell.value if cell.class == Spreadsheet::Formula
    cell
  end
def read_cell_content ( row , idx ) cell = row . at ( idx ) cell = row [ idx ] if row [ idx ] . class == Spreadsheet :: Link cell = cell . value if cell . class == Spreadsheet :: Formula cell end
Get the contents of a cell, accounting for the
way formula stores the value
Get the contents of a cell accounting for the way formula stores the value
row
idx