summaryrefslogtreecommitdiff
path: root/lib/irb/completion.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/irb/completion.rb')
-rw-r--r--lib/irb/completion.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb
index b9142bd598..516e90c3d3 100644
--- a/lib/irb/completion.rb
+++ b/lib/irb/completion.rb
@@ -268,7 +268,17 @@ module IRB
end
RDocRIDriver = RDoc::RI::Driver.new
- PerfectMatchedProc = proc { |matched|
+ PerfectMatchedProc = ->(matched) {
+ if matched =~ /\A(?:::)?RubyVM/
+ File.open(File.join(__dir__, 'ruby_logo.aa')) do |f|
+ RDocRIDriver.page do |io|
+ f.each_line do |l|
+ io.write(l)
+ end
+ end
+ end
+ return
+ end
namespace = retrieve_completion_data(matched, true)
return unless matched
if namespace.is_a?(Array)