Skip to content

Commit f846169

Browse files
committed
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 ```
1 parent 3611801 commit f846169

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/irb/color_printer.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# frozen_string_literal: true
22
require 'pp'
3+
require 'irb/color'
34

45
module IRB
56
class ColorPrinter < ::PP

0 commit comments

Comments
 (0)