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:
parent
d4b7e967b6
commit
d6b2b5bd47
1 changed files with 1 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
require 'pp'
|
||||
require 'irb/color'
|
||||
|
||||
module IRB
|
||||
class ColorPrinter < ::PP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue