struct

Kebab::Error::InvalidCollection

Inherits Kebab::Error::Base < Struct < Value < Object

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)
Source

Instance methods

reason

Optional explanation provided by the converter (rendered in parens).

Source
schema

The command being parsed when the error fired.

Source
source

The option or argument the values were being parsed for.

Source
target_name

Human-readable noun for the target type, supplied by the converter (e.g. "tags"). Nil falls back to "value"/"values".

Source
target_type

The target type's class.

Source
target_type_name

The target type's class name.

Source
values

The raw inputs of every occurrence, in the order they were given.

Source

Nested types