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.10.1
2024-05-26 09:10:14 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
]