ktp / toothpick.ktp.binding / toothpick.config.Module

Extensions for toothpick.config.Module

bind

fun <T : Any> Module.bind(key: KClass<T>): CanBeNamed<T>

DSL method to start a binding statement.

fun <T : Any> Module.bind(): CanBeNamed<T>

DSL method to start a binding statement, using reified types for a more Kotlin friendly syntax.