instance method
extract_file_and_line_number
Ruby on Rails 6.1.7.10
Since v5.2.8.1 PrivateSignature
extract_file_and_line_number(trace)
No documentation comment.
Parameters
-
tracereq
Source
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 179
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
Defined in actionpack/lib/action_dispatch/middleware/exception_wrapper.rb line 179
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::ExceptionWrapper