enum

Kebab::Schema::Option::Repetition

Inherits Enum < Comparable < Value < Object

How the option accumulates across occurrences.

Constants

None = 0

Given at most once (a flag, or a value option that isn't repeatable).

Count = 1

Repeats to increment a counter, like -vvv. Takes no value.

Collect = 2

Repeats to accumulate values, like --tag a --tag b.

Instance methods

collect?

Returns true if this enum value equals Collect

Source
count?

Returns true if this enum value equals Count

Source
none?

Returns true if this enum value equals None

Source