mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Pass example proc to around_each hook if there are no arguments
This commit is contained in:
parent
5543c07766
commit
d0f229c659
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ module Spectator
|
||||||
end
|
end
|
||||||
|
|
||||||
macro around_each(&block)
|
macro around_each(&block)
|
||||||
def %hook({{block.args.splat}}) : Nil
|
def %hook({{block.args.first || :example.id}}) : Nil
|
||||||
{{block.body}}
|
{{block.body}}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue