Skip to content

Instantly share code, notes, and snippets.

@nthx
Created January 11, 2012 14:36
Show Gist options
  • Select an option

  • Save nthx/1594938 to your computer and use it in GitHub Desktop.

Select an option

Save nthx/1594938 to your computer and use it in GitHub Desktop.
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