method
extract_file_and_line_number
v6.0.0 -
Show latest stable
- Class:
ActionDispatch::ExceptionWrapper
extract_file_and_line_number(trace)private
No documentation available.
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 168
def extract_file_and_line_number(trace)
# Split by the first colon followed by some digits, which works for both
# Windows and Unix path styles.
file, line = trace.match(/^(.+?):(\d+).*$/, &:captures) || trace
[file, line.to_i]
end