method

extract_source_fragment_lines

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: ExceptionWrapper
extract_source_fragment_lines(source_lines, line) 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 335
      def extract_source_fragment_lines(source_lines, line)
        start = [line - 3, 0].max
        lines = source_lines.drop(start).take(6)
        Hash[*(start + 1..(lines.count + start)).zip(lines).flatten]
      end
Register or log in to add new notes.