All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.docs.ExampleRunner.kt Maven / Gradle / Ivy

There is a newer version: 0.77.0
Show newest version
package de.peekandpoke.ultra.common.docs

class ExampleRunner {

    fun run(examples: List) {

        examples.forEachIndexed { idx, it ->

            repeat(120) { print("=") }
            println()
            println("Example #${idx + 1}")
            println()
            println(it.title)
            repeat(120) { print("=") }
            println()

            println()
            it.run()
            println()

            if (idx < examples.size - 1) {
                println("[Press [ENTER] to continue]")
                readLine()
                println()
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy