class Term::Prompt::AnswersCollector

Defined in:

prompt/answers_collector.cr

Constructors

Macro Summary

Instance Method Summary

Constructor Detail

def self.new(prompt : Term::Prompt, **options) #

Initialize answer collector


[View source]

Macro Detail

macro method_missing(call) #

[View source]

Instance Method Detail

def call(&block : AnswersCollector -> ) #

Start gathering answers


[View source]
def key(name, &block : AnswersCollector -> ) #

Create answer entry


[View source]
def key(name) #

ditto


[View source]
def name : String | Nil #

[View source]
def name? : String | Nil | Nil #

[View source]
def values(&block) #

Change to collect all values for a key


[View source]
def values #

ditto


[View source]