Last active
December 12, 2015 00:28
-
-
Save mbklein/4684134 to your computer and use it in GitHub Desktop.
Ruby assertions, 4chan style.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class GTFO < Exception; end | |
def gtfo | |
raise GTFO, caller.join("\n") | |
end | |
a = 1 | |
b = 2 | |
a == b or gtfo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment