まずは pry
を Gemfile へ追加。
Gemfile
gem "pry", group: :development
gemspec な人は以下のように追加
your_gem.gemspec
spec.add_development_dependency "pry"
追加できたら bundle config console pry
$ bundle config console pry
$ bundle console
Resolving dependencies...
[1] pry(main)>
bundle console
を諦めて bundle exec pry
してた人、.irbrc
を書き換えたくない人には嬉しいですね。
Enjoy
Resources
- 公式のドキュメント
-
https://github.com/bundler/bundler/pull/2620
- Great work!!