instance method annotated_source_code

Ruby on Rails 6.0.6

Since v6.0.6 Last seen in v6.1.7.10

Available in: v6.0.6 v6.1.7.10

Signature

annotated_source_code()

No documentation comment.

Source
# File actionview/lib/action_view/template/error.rb, line 149
    def annotated_source_code
      @offending_code_string.split("\n").map.with_index(1) { |line, index|
        indentation = " " * 4
        "#{index}:#{indentation}#{line}"
      }
    end

Defined in actionview/lib/action_view/template/error.rb line 149 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionView::SyntaxErrorInTemplate

Type at least 2 characters to search.

↑↓ navigate · open · esc close