Skip to content

Instantly share code, notes, and snippets.

@pbosetti
Created October 19, 2012 12:07
Show Gist options
  • Save pbosetti/3917921 to your computer and use it in GitHub Desktop.
Save pbosetti/3917921 to your computer and use it in GitHub Desktop.
IRB inspection trigger
require "irb"
trap(:INT) do
IRB.start
trap(:INT, "EXIT")
end
count = 0
loop do
count += 1
puts "doing something"
sleep 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment