method
annotated_source_code
v7.1.3.2 -
Show latest stable
- Class:
ActionView::SyntaxErrorInTemplate
annotated_source_code()public
No documentation available.
# File actionview/lib/action_view/template/error.rb, line 257
def annotated_source_code
@offending_code_string.split("\n").map.with_index(1) { |line, index|
indentation = " " * 4
"#{index}:#{indentation}#{line}"
}
end