swap out rake console IRB with PRY gem for syntax highlighting etc.
####before:
####after:
#####Requirements:
pry => gem install pry
my_gem => gem install my_gem
(or, better, put in your gemfile)
gem 'pry'
gem 'my_gem'
#####in your Rakefile, modify your console task
Comment out
task :console do
exec "irb -r./app.rb"
end
Note: copy the code from your exec
line, here it is exec "irb -r./app.rb"
, but it might be different in other challenges. Put the line exactly as it was originally except replace irb
with pry
. Add the other lines below as outlined with the exec line replaced.
Include
task :console do
require 'pry'
require 'my_gem'
exec "pry -r./app.rb"
ARGV.clear
Pry.start
end