Change how values are passed to helper

Working around a segfault (dunno why this fixes it).
This commit is contained in:
Michael Miller 2019-03-22 11:53:20 -06:00
parent d705ef657c
commit e7e1d0e084
24 changed files with 106 additions and 107 deletions

View file

@ -3,6 +3,9 @@ require "./match_data_value"
module Spectator::Matchers
# Wraps a value for used in match data.
private class GenericMatchDataValue(T) < MatchDataValue
# Underlying value.
getter value
# Creates the wrapper.
def initialize(@value : T)
end