Last active
September 7, 2017 14:12
-
-
Save caseykulm/78fd464cf4506076049c092acdc9f3b3 to your computer and use it in GitHub Desktop.
Inject Functions: 1
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
data class DoggoStash( | |
val leash: Leash, | |
val waterBowl: WaterBowl, | |
val bed: Bed) | |
fun proceedOnRoadTrip(doggoStash: DoggoStash) { | |
getDoggoLeashedUp(doggoStash.leash) | |
packupWaterBowl(doggoStash.waterBowl) | |
setupBedInBackSeat(doggoStash.bed) | |
startDriving() | |
} | |
val leash = DoggoLeash() | |
val waterBowl = WaterBowl() | |
val bed = Bed() | |
val doggoStash = DoggoStash(leash, waterBowl, bed) | |
proceedOnRoadTrip(doggoStash) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment