ruby-changes:62341
From: Masataka <ko1@a...>
Date: Wed, 22 Jul 2020 02:42:16 +0900 (JST)
Subject: [ruby-changes:62341] b40e925c92 (master): [ruby/irb] Fix error when `inspect` is called but not found in inspector
https://git.ruby-lang.org/ruby.git/commit/?id=b40e925c92 From b40e925c92753640ae05951fe9f69604b41fab32 Mon Sep 17 00:00:00 2001 From: Masataka Pocke Kuwabara <kuwabara@p...> Date: Wed, 10 Jun 2020 22:01:57 +0900 Subject: [ruby/irb] Fix error when `inspect` is called but not found in inspector https://github.com/ruby/irb/commit/ce6d53e6d9 diff --git a/lib/irb/inspector.rb b/lib/irb/inspector.rb index bc7fb0b..4c028be 100644 --- a/lib/irb/inspector.rb +++ b/lib/irb/inspector.rb @@ -113,6 +113,7 @@ module IRB # :nodoc: https://github.com/ruby/ruby/blob/trunk/lib/irb/inspector.rb#L113 result rescue NoMethodError puts "(Object doesn't support #inspect)" + '' end } Inspector.def_inspector([:pp, :pretty_inspect], proc{require "pp"}){|v| -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/