Methods
Class Public methods
new(template, offending_code_string)
📝 Source code
# File actionview/lib/action_view/template/error.rb, line 138
    def initialize(template, offending_code_string)
      @offending_code_string = offending_code_string
      super(template)
    end
              
                🔎 See on GitHub
              
            Instance Public methods
annotated_source_code()
📝 Source code
# 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
              
                🔎 See on GitHub
              
            message()
📝 Source code
# File actionview/lib/action_view/template/error.rb, line 143
    def message
      <<~MESSAGE
        Encountered a syntax error while rendering template: check #{@offending_code_string}
      MESSAGE
    end
              
                🔎 See on GitHub