From 52f6563422edd9b233dbe5f522058be230c63651 Mon Sep 17 00:00:00 2001 From: Hiroaki Osawa Date: Tue, 18 Mar 2025 02:19:43 +0900 Subject: [PATCH] Allow arguments to be passed through Binding#irb (#12796) * Allow arguments to be passed through Binding#irb Modified Binding#irb to forward any arguments to the underlying irb method call. * Update prelude.rb Co-authored-by: Stan Lo * Update prelude.rb Co-authored-by: Stan Lo --------- Co-authored-by: Stan Lo --- prelude.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prelude.rb b/prelude.rb index ea0a31c1ae..a9e2f155fb 100644 --- a/prelude.rb +++ b/prelude.rb @@ -1,13 +1,13 @@ class Binding # :nodoc: - def irb + def irb(...) begin require 'irb' rescue LoadError, Gem::LoadError Gem::BUNDLED_GEMS.force_activate 'irb' retry end - irb + irb(...) end # suppress redefinition warning