mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Address Ameba issues
This commit is contained in:
parent
b83c6b7b1e
commit
b3fa2e3bfe
2 changed files with 1 additions and 3 deletions
|
@ -94,7 +94,7 @@ module Spectator
|
|||
# Additionally, the block usage is forwarded for methods that accept it.
|
||||
# Even though `super` and `previous_def` without parameters forward the arguments, they don't forward a block.
|
||||
%}
|
||||
{% original = ((@type.methods.includes?(method) || !@type.ancestors.any? { |a| a.methods.includes?(method) }) ? :previous_def : :super).id %}
|
||||
{% original = ((@type.methods.includes?(method) || !@type.ancestors.any? &.methods.includes?(method)) ? :previous_def : :super).id %}
|
||||
{% if method.accepts_block?
|
||||
original = "#{original} { |*_spectator_yargs| yield *_spectator_yargs }".id
|
||||
end %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue