gimite / google-spreadsheet-ruby

Ruby library to read/write Google Spreadsheet
Other
306 stars 52 forks source link

Error is thrown when getting num_cols if row content is number #37

Closed smasry closed 12 years ago

smasry commented 12 years ago

Affects Version 0.1.8

def num_cols reload() if !@cells return @input_values.select(){ |(r, c), v| !v.empty? }.map(){ |(r, c), v| c }.max || 0 end

throws

undefined method `empty?' for 1:Fixnum