mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Don't stub primitive methods
This commit is contained in:
parent
291b4c75a8
commit
03aa282512
1 changed files with 5 additions and 1 deletions
|
@ -156,7 +156,11 @@ module Spectator
|
|||
stub_all({{type.superclass}}, with: {{style}})
|
||||
{% end %}
|
||||
|
||||
{% for method in type.methods.reject { |meth| meth.name.starts_with?("_spectator") || DSL::RESERVED_KEYWORDS.includes?(meth.name.symbolize) } %}
|
||||
{% for method in type.methods.reject do |meth|
|
||||
meth.annotation(Primitive) ||
|
||||
meth.name.starts_with?("_spectator") ||
|
||||
DSL::RESERVED_KEYWORDS.includes?(meth.name.symbolize)
|
||||
end %}
|
||||
{{style.id}} {{method}}
|
||||
{% end %}
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue