lib/roo/excel.rb
def read_cell(row, idx)
    cell = read_cell_content(row, idx)
    case cell
    when Float, Integer, Fixnum, Bignum
      value_type = :float
      value = cell.to_f
    when Spreadsheet::Link
      value_type = :link
      value = cell
    when String, TrueClass, FalseClass
      value_type = :string
      value = cell.to_s
    else
      value_type = cell.class.to_s.downcase.to_sym
      value = nil
    end # case
    return value_type, value
  end
# Read the cell and based on the class,
# return the values for Roo
Read the cell and based on the class,
return the values for Roo
Read the cell and based on the class return the values for Roo
def read_cell(row, idx)
    cell = read_cell_content(row, idx)
    case cell
    when Float, Integer, Fixnum, Bignum
      value_type = :float
      value = cell.to_f
    when Spreadsheet::Link
      value_type = :link
      value = cell
    when String, TrueClass, FalseClass
      value_type = :string
      value = cell.to_s
    else
      value_type = cell.class.to_s.downcase.to_sym
      value = nil
    end 
    return value_type, value
  end
def read_cell ( row , idx ) cell = read_cell_content ( row , idx ) case cell when Float , Integer , Fixnum , Bignum value_type = :float value = cell . to_f when Spreadsheet :: Link value_type = :link value = cell when String , TrueClass , FalseClass value_type = :string value = cell . to_s else value_type = cell . class . to_s . downcase . to_sym value = nil end return value_type , value end
Read the cell and based on the class,
return the values for Roo
Read the cell and based on the class return the values for Roo
# case
row
idx