mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Inject stubbable method that accepts a block
This commit is contained in:
parent
99aa8afdce
commit
15dd2ea6f1
1 changed files with 4 additions and 0 deletions
|
@ -53,6 +53,10 @@ module Spectator
|
||||||
inject_stub def {{key.id}}(*%args, **%kwargs)
|
inject_stub def {{key.id}}(*%args, **%kwargs)
|
||||||
{{value}}
|
{{value}}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
inject_stub def {{key.id}}(*%args, **%kwargs, &)
|
||||||
|
{{key.id}}
|
||||||
|
end
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
||||||
{% if block %}
|
{% if block %}
|
||||||
|
|
Loading…
Reference in a new issue