1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Let pretty_inspect work once at first

For older pp.rb which did not need io/console, and dealing with
`LoadError`.
This commit is contained in:
Nobuyoshi Nakada 2021-11-30 13:40:42 +09:00
parent dc46529b64
commit 438220f063
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -33,7 +33,7 @@ module Test
module CoreAssertions
require_relative 'envutil'
require 'pp'
require 'io/console'
nil.pretty_inspect
def mu_pp(obj) #:nodoc:
obj.pretty_inspect.chomp