mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Pry::ColorPrinter.pp: add newline
argument and pass it on to PP
This commit is contained in:
parent
1f64463184
commit
c7699e5b7a
1 changed files with 2 additions and 2 deletions
|
@ -12,8 +12,8 @@ class Pry
|
|||
|
||||
CodeRay::Encoders::Terminal::TOKEN_COLORS[:comment][:self] = "\e[1;34m"
|
||||
|
||||
def self.pp(obj, out = $>, width = 79)
|
||||
q = ColorPrinter.new(out, width)
|
||||
def self.pp(obj, out = $>, width = 79, newline = "\n")
|
||||
q = ColorPrinter.new(out, width, newline)
|
||||
q.guard_inspect_key { q.pp obj }
|
||||
q.flush
|
||||
out << "\n"
|
||||
|
|
Loading…
Reference in a new issue