struct

TUI::FormEnumOption

Inherits Struct < Value < Object

One choice in an EnumField/FlagsField picker: label is what's shown on screen, wire_value is what gets persisted (see FormField#value) and what a FieldSpec's current value is matched against on #start.

Constructors

new(label : String, wire_value : String)
Source

Instance methods

clone
Source
copy_with(label _label = @label, wire_value _wire_value = @wire_value)
Source
label
wire_value