struct Clicr::Command::Option(T, D)
- Clicr::Command::Option(T, D)
- Struct
- Value
- Object
Defined in:
command.crConstructors
- .new(label : String | Nil = nil, short : Char | Nil = nil)
- .new(type : T.class, label : String | Nil = nil, short : Char | Nil = nil)
- .new(default : D, label : String | Nil = nil, short : Char | Nil = nil)
Instance Method Summary
-
#cast_value(raw_value : String) : T
yields in cast of
- #default : D
- #label : String | Nil
- #short : Char | Nil
- #string_option? : Bool
- #type : T.class