class Spectator::TypedValueWrapper(T)

Overview

Implementation of a value wrapper for a specific type. Instances of this class should be created to wrap values. Then the wrapper should be stored as a ValueWrapper so that the type is deferred to runtime. This trick allows the DSL to store values without explicitly knowing their type.

Defined in:

spectator/typed_value_wrapper.cr

Constructors

Instance Method Summary

Instance methods inherited from class Object

should(matcher) should, should_eventually(matcher) should_eventually, should_never(matcher) should_never, should_not(matcher) should_not

Constructor Detail

def self.new(value : T) #

Creates a new wrapper for a value.


[View source]

Instance Method Detail

def value : T #

Wrapped value.


[View source]