render_output now accepts optional color parameter

This commit is contained in:
John Mair 2011-08-06 08:51:56 +11:00
parent ecf7024b94
commit 6a0e829ebb
1 changed files with 2 additions and 2 deletions

View File

@ -15,9 +15,9 @@ class Pry
end
# if start_line is not false then add line numbers starting with start_line
def render_output(should_flood, start_line, text)
def render_output(should_flood, start_line, text, color=:blue)
if start_line
text = Pry::Helpers::Text.with_line_numbers text, start_line
text = Pry::Helpers::Text.with_line_numbers text, start_line, color
end
if should_flood