class Crommand::Nothing(T)
- Crommand::Nothing(T)
- Crommand::Optional(T)
- Reference
- Object
Overview
An implementation of the Optional class that represents an optional with no value set.
Defined in:
optional.crInstance Method Summary
-
#value : T
This method always raises an exception to indicate that you should not be requesting a value from a Nothing.
Instance methods inherited from class Crommand::Optional(T)
if_set(&) : Optional
if_set,
if_unset(&) : Optional
if_unset,
set? : Bool
set?,
value : T
value
Instance Method Detail
def value : T
#
This method always raises an exception to indicate that you should not be requesting a value from a Nothing.