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:
parent
5c9dbe82b3
commit
cef1d2f6c6
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue