class Crommand::Nothing(T)

Overview

An implementation of the Optional class that represents an optional with no value set.

Defined in:

optional.cr

Instance Method Summary

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.


[View source]