Skip to content

Commit 247a6a6

Browse files
committed
🎨 Exclude alredy overriden methods from inherited methods list
1 parent 337ad28 commit 247a6a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

data/templates/vuepress/class.md.twig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,11 @@
9292

9393
{% endif %}{# class.tags.see || class.tags.link #}
9494

95+
{% set methodsList = [] %}
9596
#### <span style="display: none;">{{ class }}</span> Methods:
9697
{# Lista de métodos públicos y protegidos #}
9798
{% for method in class.methods|sort_asc %}
99+
{% set methodsList = methodsList|merge([method.name]) %}
98100
{% if method.visibility != 'private' %}
99101
{% include 'method.md.twig' %}
100102
{% endif %}
@@ -104,7 +106,7 @@
104106

105107
#### <span style="display: none;">{{ class }}</span> Inherited methods:
106108
{# Lista de métodos públicos y protegidos #}
107-
{% for method in class.inheritedMethods -%}
109+
{% for method in class.inheritedMethods if method.name not in methodsList -%}
108110
{%- if method.parent in project.indexes.classes %}
109111
{%- set parent_location = 'classes' %}
110112
{%- elseif method.parent in project.indexes.interfaces %}

0 commit comments

Comments
 (0)