From a355b59f3ecacce1af4b6235c7ba62b12630d4d2 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Wed, 25 Sep 2019 09:12:03 -0600 Subject: [PATCH] Type annotations for return types --- src/spectator/example.cr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/spectator/example.cr b/src/spectator/example.cr index 374cdfb..96d65f7 100644 --- a/src/spectator/example.cr +++ b/src/spectator/example.cr @@ -19,15 +19,15 @@ module Spectator protected getter test_wrapper : TestWrapper # Source where the example originated from. - def source + def source : Source @test_wrapper.source end - def what + def what : String | Symbol @test_wrapper.description end - def symbolic? + def symbolic? : Bool description = @test_wrapper.description description.starts_with?('#') || description.starts_with?('.') end