class BetterErrors::CodeFormatter::Text

@private

Public Instance Methods

formatted_lines() click to toggle source
# File lib/better_errors/code_formatter/text.rb, line 8
def formatted_lines
  each_line_of(context_lines) { |highlight, current_line, str|
    sprintf '%s %3d   %s', (highlight ? '>' : ' '), current_line, str
  }
end
source_unavailable() click to toggle source
# File lib/better_errors/code_formatter/text.rb, line 4
def source_unavailable
  "# Source is not available"
end