diff options
author | aycabta <aycabta@gmail.com> | 2019-05-29 06:11:24 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-05-29 06:57:47 +0900 |
commit | a4a682c450164d1d4371e00a4f83429aa85d29ae (patch) | |
tree | 61007f9334bdb05b43ae6bea9241366a95b1df89 /lib/irb | |
parent | d341bb285768ae70bc8d251e577181c57322968c (diff) |
Check RUBY_YES_I_AM_NOT_A_NORMAL_USER env to access RubyVM doc
Diffstat (limited to 'lib/irb')
-rw-r--r-- | lib/irb/completion.rb | 2 |
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| |