From a4a682c450164d1d4371e00a4f83429aa85d29ae Mon Sep 17 00:00:00 2001 From: aycabta Date: Wed, 29 May 2019 06:11:24 +0900 Subject: [PATCH] Check RUBY_YES_I_AM_NOT_A_NORMAL_USER env to access RubyVM doc --- lib/irb/completion.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb index 516e90c3d3..3c095e6b7c 100644 --- a/lib/irb/completion.rb +++ b/lib/irb/completion.rb @@ -269,7 +269,7 @@ module IRB RDocRIDriver = RDoc::RI::Driver.new PerfectMatchedProc = ->(matched) { - if matched =~ /\A(?:::)?RubyVM/ + if matched =~ /\A(?:::)?RubyVM/ and not ENV['RUBY_YES_I_AM_NOT_A_NORMAL_USER'] File.open(File.join(__dir__, 'ruby_logo.aa')) do |f| RDocRIDriver.page do |io| f.each_line do |l|