shard-spectator/src/spectator/value_wrapper.cr
2018-09-23 12:05:19 -06:00

9 lines
274 B
Crystal

module Spectator
# Base class for proxying test values to examples.
# This abstraction is required for inferring types.
# The `DSL#let` macro makes heavy use of this.
abstract class ValueWrapper
# Retrieves the underlying value.
abstract def value
end
end