aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2019-05-29 06:11:24 +0900
committeraycabta <aycabta@gmail.com>2019-05-29 06:57:47 +0900
commita4a682c450164d1d4371e00a4f83429aa85d29ae (patch)
tree61007f9334bdb05b43ae6bea9241366a95b1df89
parentd341bb285768ae70bc8d251e577181c57322968c (diff)
downloadruby-a4a682c450164d1d4371e00a4f83429aa85d29ae.tar.gz
Check RUBY_YES_I_AM_NOT_A_NORMAL_USER env to access RubyVM doc
-rw-r--r--lib/irb/completion.rb2
1 files changed, 1 insertions, 1 deletions
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|