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

Check RUBY_YES_I_AM_NOT_A_NORMAL_USER env to access RubyVM doc

This commit is contained in:
aycabta 2019-05-29 06:11:24 +09:00
parent d341bb2857
commit a4a682c450

View file

@ -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|