Eno::Error » #cursor

cursor → [line, column]

Returns a cursor position as an array of the form [line, column], indicating where a cursor should be placed if an application wants to offer the user a way to move the cursor straight to the error location.

  # ...
rescue Eno::Error => e
  e.cursor  #=> [3, 14]

Return value

An array, where [0] is the line number, and [1] is the column number.