From 7e2ed7d1aaee74b6d1df82f8f97677c513b3878b Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Wed, 29 Jan 2020 00:21:25 +0900 Subject: [ruby/irb] Add a new easter egg: dancing ruby https://github.com/ruby/irb/commit/e37dc7e58e --- lib/irb/completion.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lib/irb/completion.rb') diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb index 474d13cdbb..1897b4928f 100644 --- a/lib/irb/completion.rb +++ b/lib/irb/completion.rb @@ -268,11 +268,7 @@ module IRB PerfectMatchedProc = ->(matched) { RDocRIDriver ||= RDoc::RI::Driver.new 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| - IO.copy_stream(f, io) - end - end + IRB.send(:easter_egg) return end namespace = retrieve_completion_data(matched, doc_namespace: true) -- cgit v1.2.3