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.crConstructors
-
.new(value : T)
Creates a new wrapper for a value.
Instance Method Summary
-
#value : T
Wrapped value.