Warn missing irb cases

This commit is contained in:
Hiroshi SHIBATA 2024-09-06 13:26:50 +09:00
parent 1b4f394c52
commit 74c4e562e2
Notes: git 2024-09-06 05:45:36 +00:00

View File

@ -1,7 +1,11 @@
class Binding class Binding
# :nodoc: # :nodoc:
def irb def irb
force_activate "irb" if defined?(Bundler) && !Gem.loaded_specs["irb"] if defined?(Bundler) && !Gem.loaded_specs["irb"]
unless force_activate "irb"
warn "irb is not found. Install irb from RubyGems or add irb to Gemfile."
end
end
require 'irb' require 'irb'
irb irb
end end