diff --git a/src/spectator/matchers/prefixed_value.cr b/src/spectator/matchers/prefixed_value.cr index ffeddfc..a9b981e 100644 --- a/src/spectator/matchers/prefixed_value.cr +++ b/src/spectator/matchers/prefixed_value.cr @@ -14,5 +14,12 @@ module Spectator::Matchers io << ' ' io << @value end + + # Outputs details of the formatted value with a prefix. + def inspect(io) + io << @prefix + io << ' ' + @prefix.inspect(io) + end end end