Skip to content

Commit

Permalink
Falling back to IRB in case pry does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
mpmenne committed Nov 11, 2020
1 parent 9c3ebed commit 6cd8ab3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ require 'bundler/setup'
require 'wannabe_bool'

require 'pry'
Pry.start if defined?(Pry)
if defined?(Pry)
Pry.start
else
require 'irb'
IRB.start
end

0 comments on commit 6cd8ab3

Please sign in to comment.