Type annotations for return types

This commit is contained in:
Michael Miller 2019-09-25 09:12:03 -06:00
parent d4e890af4c
commit a355b59f3e

View file

@ -19,15 +19,15 @@ module Spectator
protected getter test_wrapper : TestWrapper protected getter test_wrapper : TestWrapper
# Source where the example originated from. # Source where the example originated from.
def source def source : Source
@test_wrapper.source @test_wrapper.source
end end
def what def what : String | Symbol
@test_wrapper.description @test_wrapper.description
end end
def symbolic? def symbolic? : Bool
description = @test_wrapper.description description = @test_wrapper.description
description.starts_with?('#') || description.starts_with?('.') description.starts_with?('#') || description.starts_with?('.')
end end