summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroaki Osawa <ikusawasi@gmail.com>2025-03-18 02:19:43 +0900
committerGitHub <noreply@github.com>2025-03-18 02:19:43 +0900
commit52f6563422edd9b233dbe5f522058be230c63651 (patch)
treebab8af78ec0788648bb68ce08ac799fbff568be5
parent1acfb29015dbc38fd345d8786aa78aad59f7dcd1 (diff)
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 <stan001212@gmail.com> * Update prelude.rb Co-authored-by: Stan Lo <stan001212@gmail.com> --------- Co-authored-by: Stan Lo <stan001212@gmail.com>
Notes
Notes: Merged-By: tompng <tomoyapenguin@gmail.com>
-rw-r--r--prelude.rb4
1 files 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