class Pry::Code::LOC
def add_line_number(max_width = 0, color = false)
-
(void)
-
Parameters:
-
max_width
(Integer
) --
def add_line_number(max_width = 0, color = false) padded = lineno.to_s.rjust(max_width) colorized_lineno = if color Pry::Helpers::BaseHelpers.colorize_code(padded) else padded end properly_padded_line = handle_multiline_entries_from_edit_command(line, max_width) tuple[0] = "#{colorized_lineno}: #{properly_padded_line}" end