Skip to content

Instantly share code, notes, and snippets.

@caseykulm
Last active September 7, 2017 14:12
Show Gist options
  • Save caseykulm/78fd464cf4506076049c092acdc9f3b3 to your computer and use it in GitHub Desktop.
Save caseykulm/78fd464cf4506076049c092acdc9f3b3 to your computer and use it in GitHub Desktop.
Inject Functions: 1
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