Eno::Error » #selection

selection → [[line, column], [line, column]]

Returns a selection as an array of the form [[line, column], [line, column]], indicating a text range to select if an application wants to offer the user a way to get a selection for the error in the input.

rubybegin
  # ...
rescue Eno::Error => e
  e.selection  #=> [[3, 14], [3, 23]]
end

Return value

An array, where [0] is the begin of the selection and [1] is the end,and both begin and end are each again an array, where [0] is theline number, and [1] is the column number.