mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Warn missing irb cases
This commit is contained in:
parent
1b4f394c52
commit
74c4e562e2
Notes:
git
2024-09-06 05:45:36 +00:00
1 changed files with 5 additions and 1 deletions
|
@ -1,7 +1,11 @@
|
|||
class Binding
|
||||
# :nodoc:
|
||||
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'
|
||||
irb
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue