Skip to content

Commit

Permalink
Add missing require
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
k0kubun committed Jan 8, 2021
1 parent 3611801 commit f846169
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/irb/color_printer.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true
require 'pp'
require 'irb/color'

module IRB
class ColorPrinter < ::PP
Expand Down

0 comments on commit f846169

Please sign in to comment.