From d6b2b5bd47952efb6928db7ff1d393f6973e7ccd Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Thu, 7 Jan 2021 22:32:47 -0800 Subject: [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 --- lib/irb/color_printer.rb | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3