mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Add implicit subject
This commit is contained in:
parent
a261592776
commit
dacca0bf1e
1 changed files with 10 additions and 0 deletions
|
@ -16,6 +16,16 @@ module Spectator
|
||||||
{% end %}
|
{% end %}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
{% if what.is_a?(Path) || what.is_a?(Generic) %}
|
||||||
|
macro described_class
|
||||||
|
{{what}}
|
||||||
|
end
|
||||||
|
|
||||||
|
def subject(*args)
|
||||||
|
described_class.new(*args)
|
||||||
|
end
|
||||||
|
{% end %}
|
||||||
|
|
||||||
{{block.body}}
|
{{block.body}}
|
||||||
|
|
||||||
::Spectator::SpecBuilder.end_group
|
::Spectator::SpecBuilder.end_group
|
||||||
|
|
Loading…
Reference in a new issue