mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
a7d933e502
commit
82386f21b9
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ require 'irb/color'
|
||||||
|
|
||||||
module IRB
|
module IRB
|
||||||
class ColorPrinter < ::PP
|
class ColorPrinter < ::PP
|
||||||
def self.pp(obj, out = $>, width = 79)
|
def self.pp(obj, out = $>, width = Reline.get_screen_size.last)
|
||||||
q = ColorPrinter.new(out, width)
|
q = ColorPrinter.new(out, width)
|
||||||
q.guard_inspect_key {q.pp obj}
|
q.guard_inspect_key {q.pp obj}
|
||||||
q.flush
|
q.flush
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue