Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
term-prompt
master
Term
Prompt
AnswersCollector
Answers
ArgumentRequired
ArgumentValidation
BlockPaginator
Choice
Choices
ConfigurationError
ConfirmQuestion
ConversionError
EnumList
Expander
Status
InvalidArgument
Keypress
List
MaskQuestion
Multiline
MultiList
Paginator
Palette
Question
Validators
LengthValidator
PatternValidator
RequiredValidator
Result
Failure
Success
Slider
Statement
Symbols
ValidationCoercion
Validator
ValidatorProc
Generated using Crystal 1.14.0
2024-12-07 08:27:44 UTC
class
Term::
Prompt::
Result
Term::Prompt::Result
Reference
Object
Overview
Accumulates errors
Direct Known Subclasses
Term::Prompt::Result::Failure
Term::Prompt::Result::Success
Defined in:
prompt/result.cr
Constructors
.new
(question : Term::Prompt::Question, value : Nil | String)
Instance Method Summary
#failure?
#process
#question
: Question
#success?
#value
: String | Nil
Constructor Detail
def self.
new
(question :
Term::Prompt::Question
, value : Nil | String)
#
[
View source
]
Instance Method Detail
def
failure?
#
[
View source
]
def
process
#
[
View source
]
def
question
:
Question
#
[
View source
]
def
success?
#
[
View source
]
def
value
: String | Nil
#
[
View source
]