Method: Libis::Tools::Spreadsheet#shift
- Defined in:
- lib/libis/tools/spreadsheet.rb
#shift ⇒ Object
Return the current row and increment the current_row pointer.
101 102 103 104 105 |
# File 'lib/libis/tools/spreadsheet.rb', line 101 def shift return nil unless @current_row < @ss.last_row @current_row += 1 Hash[@ss.row(@current_row).map.with_index { |v, i| [headers[i], v] }] end |