class Crommand::Something(T)

Overview

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

Defined in:

optional.cr

Constructors

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

Constructor Detail

def self.new(value : T) #

Constructor that takes the value to be set.


[View source]

Instance Method Detail

def set? : Bool #

Always returns true.


[View source]
def value : T #

Retrieves the value associated with the Something instance.


[View source]