fork download
  1. img_array = [
  2. ['a', 'b', 'd', 'e'],
  3. ['f', 'g', 'h', 'j']
  4. ]
  5.  
  6. img_array.each do |row, row_index|
  7. p row
  8. p row_index
  9. end
Success #stdin #stdout 0.05s 9760KB
stdin
Standard input is empty
stdout
"a"
"b"
"f"
"g"