mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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>
This commit is contained in:
parent
1acfb29015
commit
52f6563422
Notes:
git
2025-03-17 17:20:02 +00:00
Merged-By: tompng <tomoyapenguin@gmail.com>
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue