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:
parent
d341bb2857
commit
a4a682c450
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ module IRB
|
||||||
|
|
||||||
RDocRIDriver = RDoc::RI::Driver.new
|
RDocRIDriver = RDoc::RI::Driver.new
|
||||||
PerfectMatchedProc = ->(matched) {
|
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|
|
File.open(File.join(__dir__, 'ruby_logo.aa')) do |f|
|
||||||
RDocRIDriver.page do |io|
|
RDocRIDriver.page do |io|
|
||||||
f.each_line do |l|
|
f.each_line do |l|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue