Method: Coopy::Index#to_key
- Defined in:
- lib/coopy/index.rb
#to_key(table, i) ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/coopy/index.rb', line 44 def to_key(table, i) wide = "" @v = table.get_cell_view if @v.nil? @cols.each_with_index do |col, k| d = table.get_cell(col,i) txt = @v.to_s(d) next if (txt=="" || txt=="null" || txt=="undefined") wide += " // " if (k>0) wide += txt end wide end |