Maps a string value to a Crystal enum member.
Constructors
new(short :
Char |
Nil, long :
String, default :
T |
Nil, description :
String, persistent :
Bool, block :
Proc(
T,
Nil), env_var :
String |
Nil = nil, aliases :
Array(
String) = [] of
String, hidden :
Bool = false, deprecated :
String |
Nil = nil, required :
Bool = false)
SourceInstance methods
choice_strings
Returns choices as strings for completion. Override in subclasses with choices.
Source