Skip to content

Commit 85e94ae

Browse files
committed
🎨 Else case message when there is not any method defined
1 parent d140883 commit 85e94ae

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

data/templates/vuepress/class.md.twig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@
9898
{% if method.visibility != 'private' %}
9999
{% include 'method.md.twig' %}
100100
{% endif %}
101+
{% else %}
102+
> This class has not methods.
101103
{% endfor %}
102104

103105
#### <span style="display: none;">{{ class }}</span> Inherited methods:
@@ -118,4 +120,6 @@
118120
{{- include('method-anchor-link.md.twig', { text: method.name ~ '()' }) }}
119121
<Badge v-if="'{{ method.deprecated }}'" text="deprecated" type="error"/> <Badge v-if="'{{ method.abstract }}'" text="abstract"/> <Badge v-if="'{{ method.final }}'" text="final" />
120122
{% endif %}
123+
{% else %}
124+
> This class has not inherited methods.
121125
{% endfor %}

data/templates/vuepress/interface.md.twig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,6 @@
6161
{% if method.visibility != 'private' %}
6262
{% include 'method.md.twig' %}
6363
{% endif %}
64+
{% else %}
65+
> This interface has not methods.
6466
{% endfor %}

0 commit comments

Comments
 (0)