mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Workaround issue with value
not being found
For some reason the `value` method isn't found. Event casting to TypedStub doesn't work.
This commit is contained in:
parent
bed84b315d
commit
04f3614ff7
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ module Spectator
|
|||
# A method that was not defined during initialization was stubbed.
|
||||
# Return the value of the stub as-is.
|
||||
# Might want to give a warning here, as this may produce a "bloated" union of all known stub types.
|
||||
%stub.value
|
||||
%stub.as(::Spectator::ValueStub).value
|
||||
\{% end %}
|
||||
else
|
||||
# A stub wasn't found, invoke the fallback logic.
|
||||
|
|
Loading…
Reference in a new issue