How to install the Ruby Gem dir_r with the Gemfile

By Where is my Ruby Gem

Ruby
Gem
Gemfile
dir_r

Add the entry below to your Gemfile and run the "bundle install" command.

gem 'dir_r', '~> 1.0.1'