method

find_lineno_offset

rails latest stable - Class: ActionView::Template::Handlers::ERB

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

find_lineno_offset(compiled, source_lines, highlight, error_lineno)
private

Return the offset between the error lineno and the source lineno. Searches in reverse from the backtrace lineno so we have a better chance of finding the correct line

The compiled template is likely to be longer than the source. Use the difference between the compiled and source sizes to determine the earliest line that could contain the highlight.