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

[ruby/irb] Add missing require

This is useful if you want to use IRB::ColorPrinter as a library like:

```
begin
  require 'irb/color_printer'
  IRB::ColorPrinter.pp(obj)
rescue LoadError
  pp(obj)
end
```

f8461691c7
This commit is contained in:
Takashi Kokubun 2021-01-07 22:32:47 -08:00
parent d4b7e967b6
commit d6b2b5bd47

View file

@ -1,5 +1,6 @@
# frozen_string_literal: true
require 'pp'
require 'irb/color'
module IRB
class ColorPrinter < ::PP