proposition
fun proposition(name: String, customizer: Consumer<in PropositionQuestionSpec.Builder>): DecisionSpec.Builder
Declares a proposition question. The customizer receives a new builder that already carries the name, and must at least call asking(...) on it. The customizer runs once, before this method returns, and its exceptions pass through unchanged. It does not run when the name is blank or already used.
Return
this builder
Parameters
name
the question name, which must not be blank or used by an earlier question
customizer
sets the question's definition
Throws
if the name is blank or already used, or the definition is invalid
if called from inside a customizer running on this builder