Flowdock
method

extract_file_and_line_number

Importance_0
v5.0.0.1 - Show latest stable - 0 notes - Class: ExceptionWrapper
extract_file_and_line_number(trace) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 135
    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
Register or log in to add new notes.