-
-
Save Papierkorb/48b47d318a495d401961915c63bc9d16 to your computer and use it in GitHub Desktop.
This file contains 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
# Papierkorb suggestion | |
class Foo | |
include CrystalClear | |
requires var > 5 # Pushes "var > 5" into SOME_ARRAY | |
ensures result.query? # Pushes "result.query?" into SOME_ARRAY | |
contract def foo # Expands to the def, processes SOME_ARRAY, and clears it out for the next method | |
# Code | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment