sdeleuze
05/31/2018, 2:39 PMjames_bassett
06/04/2018, 12:54 AM/**
* Kotlin-friendly sources config.
*/
private fun AsciidoctorTask.sources(patternFunction: PatternSet.() -> Unit) {
this.sources(object : Closure<Unit>(this) {
override fun call() {
(delegate as PatternSet).patternFunction()
}
})
}
Which looks a lot nicer š
sources {
include("index.adoc")
}
delegateClosureOf()
came along