Skip to content

Instantly share code, notes, and snippets.

@apeiros
Created July 25, 2014 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apeiros/dde74fa93019c378cab2 to your computer and use it in GitHub Desktop.
Save apeiros/dde74fa93019c378cab2 to your computer and use it in GitHub Desktop.
Mark code as unreachable
class Unreachable < StandardError
end
module Kernel
module_function def unreachable(msg="This place in the code should never have been reached")
raise Unreachable, msg
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment