Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Early exit

  • exit
puts "before"
answer = 42
if answer == 42
  exit 3
end
puts "after"
  • Exit code defaults to 0
echo $?
echo %ERROR_LEVEL%