A converter's collect rejected the collected values as a whole.
Dispatchable on target type via Of(T), on command via For(C), or on
both via Exact(T, C).
Constructors
new(values :
Array(
String), source :
Schema::Option |
Schema::Argument, schema :
Schema::Command, target_name :
String |
Nil = nil, reason :
String |
Nil = nil)
SourceInstance methods
reason
Optional explanation provided by the converter (rendered in parens).
Sourceschema
The command being parsed when the error fired.
Sourcesource
The option or argument the values were being parsed for.
Sourcetarget_name
Human-readable noun for the target type, supplied by the converter
(e.g. "tags"). Nil falls back to "value"/"values".
Sourcetarget_type_name
The target type's class name.
Sourcevalues
The raw inputs of every occurrence, in the order they were given.
Source