mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Forward Example procsy to_s to example
https://gitlab.com/arctic-fox/spectator/-/issues/70
This commit is contained in:
parent
eb8bd88927
commit
35f8779ceb
2 changed files with 10 additions and 0 deletions
|
@ -283,6 +283,12 @@ module Spectator
|
|||
|
||||
# Allow instance to behave like an example.
|
||||
forward_missing_to @example
|
||||
|
||||
# Constructs the full name or description of the example.
|
||||
# This prepends names of groups this example is part of.
|
||||
def to_s(io) : Nil
|
||||
@example.to_s(io)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue