1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

just substituted 'text' for 'doc' in render_output() helper method for clarity

This commit is contained in:
John Mair 2011-06-03 21:55:06 +12:00
parent 5c9dbe82b3
commit cef1d2f6c6

View file

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