summaryrefslogtreecommitdiff
path: root/prelude.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2024-09-06 13:06:56 +0900
committerHiroshi SHIBATA <[email protected]>2024-09-06 14:45:17 +0900
commit69d0e690bb632c0f67d8bb55988e91f61aff68f8 ()
treeac30393b9a7b1a1cacc8c509bfe126bc0ae2f201 /prelude.rb
parente43d701f091e78725acc312465174d938fd5d639 (diff)
Added force_require for binding.irb
When we make irb to bundled gems, binding.irb with bundle exec is not working without irb declaration of Gemfile. This force_require makes to load irb without Gemfile.
Notes: Merged: https://.com/ruby/ruby/pull/11560
-rw-r--r--prelude.rb20
1 files changed, 19 insertions, 1 deletions
@@ -1,12 +1,30 @@
class Binding
# :nodoc:
def irb
- require 'irb'
irb
end
# suppress redefinition warning
alias irb irb # :nodoc:
end
module Kernel