Methods
A
M
N
Class Public methods
new(template, offending_code_string)
# File actionview/lib/action_view/template/error.rb, line 143
def initialize(template, offending_code_string)
  @offending_code_string = offending_code_string
  super(template)
end
Instance Public methods
annotated_source_code()
# File actionview/lib/action_view/template/error.rb, line 154
def annotated_source_code
  @offending_code_string.split("\n").map.with_index(1) { |line, index|
    indentation = " " * 4
    "#{index}:#{indentation}#{line}"
  }
end
message()
# File actionview/lib/action_view/template/error.rb, line 148
    def message
      <<~MESSAGE
        Encountered a syntax error while rendering template: check #{@offending_code_string}
      MESSAGE
    end