Created
January 11, 2012 14:36
-
-
Save nthx/1594938 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 RunningABikeUseCase | |
| def execute(player) | |
| player.wakeUp | |
| player.getTheBike | |
| player.ride | |
| player.rest | |
| end | |
| end | |
| class RunningABikeAndFailingUseCase | |
| def execute(player) | |
| player.wakeUp | |
| player.getTheBike | |
| player.ride | |
| player.crashIntoTree | |
| someone.help(player) | |
| end | |
| end | |
| class RunningABikeAndHydrating | |
| def execute(player) | |
| player.wakeUp | |
| player.getTheBike | |
| player.hydrateFirst | |
| player.ride | |
| player.rest | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment