mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Use the exact text from the describe value
This fixes described_class.new when using a generic type.
This commit is contained in:
parent
3be9ffb7a0
commit
d02b848ad5
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ module Spectator
|
|||
# Ensure `described_class` and `subject` are only set for real types (is a `TypeNode`).
|
||||
{% if (what.is_a?(Path) || what.is_a?(Generic)) && (described_type = what.resolve?).is_a?(TypeNode) %}
|
||||
macro described_class
|
||||
{{described_type.name}}
|
||||
{{what}}
|
||||
end
|
||||
|
||||
subject do
|
||||
|
|
Loading…
Reference in a new issue