summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2021-01-07 22:32:47 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2021-01-07 22:35:12 -0800
commitd6b2b5bd47952efb6928db7ff1d393f6973e7ccd (patch)
tree6320f2fdea4a127a7cfd86367182e205b13a0a5c
parentd4b7e967b6dc0c4b971cbb3b5444c7fbe93a3f86 (diff)
[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 ``` https://github.com/ruby/irb/commit/f8461691c7
-rw-r--r--lib/irb/color_printer.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/irb/color_printer.rb b/lib/irb/color_printer.rb
index 3667ef16fe..11885f465d 100644
--- a/lib/irb/color_printer.rb
+++ b/lib/irb/color_printer.rb
@@ -1,5 +1,6 @@
# frozen_string_literal: true
require 'pp'
+require 'irb/color'
module IRB
class ColorPrinter < ::PP