ruby-changes:64799
From: Takashi <ko1@a...>
Date: Fri, 8 Jan 2021 15:35:44 +0900 (JST)
Subject: [ruby-changes:64799] d6b2b5bd47 (master): [ruby/irb] Add missing require
https://git.ruby-lang.org/ruby.git/commit/?id=d6b2b5bd47 From d6b2b5bd47952efb6928db7ff1d393f6973e7ccd Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> 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 diff --git a/lib/irb/color_printer.rb b/lib/irb/color_printer.rb index 3667ef1..11885f4 100644 --- a/lib/irb/color_printer.rb +++ b/lib/irb/color_printer.rb @@ -1,5 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/lib/irb/color_printer.rb#L1 # frozen_string_literal: true require 'pp' +require 'irb/color' module IRB class ColorPrinter < ::PP -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/