shard-spectator/src/spectator/value_wrapper.cr

10 lines
274 B
Crystal
Raw Normal View History

2018-08-26 00:36:32 +00:00
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.
2018-09-23 18:05:19 +00:00
abstract class ValueWrapper
2018-08-26 00:36:32 +00:00
# Retrieves the underlying value.
abstract def value
end
end