mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Type annotations for return types
This commit is contained in:
parent
d4e890af4c
commit
a355b59f3e
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue