class TTY::Prompt::Evaluator
@api private
Evaluates provided parameters and stops if any of them fails
def call(initial)
def call(initial) seed = Result::Success.new(@question, initial) results.reduce(seed, &:with) end
def check(proc = nil, &block)
def check(proc = nil, &block) results << (proc || block) end
def initialize(question, &block)
def initialize(question, &block) @question = question @results = [] instance_eval(&block) if block end