Created
December 22, 2015 00:32
-
-
Save nerdfiles/5c3e19d6432fdfadd14f to your computer and use it in GitHub Desktop.
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 God | |
| existing = false | |
| causeGod: () -> | |
| @causeAttributes() | |
| @causeExtension() | |
| causeAttributes: () -> | |
| causeExtension: () -> | |
| class GodWithAttributes extends God | |
| existing = true | |
| causeAttributes: (attributesOfGod) -> | |
| attributesOfGod | |
| causeExtension: (modesOfGod) -> | |
| modesOfGod | |
| class GodWithoutExtension extends God | |
| existing = false | |
| causeAttributes: (attributesOfGod) -> | |
| attributesOfGod | |
| gods = [new GodWithAttributes, new GodWithoutExtension] | |
| god.causeGod() for god in gods if god.existing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment