Skip to content

Commit

Permalink
Show aliases in specification documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromedalbert committed Jun 23, 2024
1 parent caf6821 commit 3df3cd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rdoc/generator/template/jekdoc/classpage.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ next: /command-reference
description.gsub! %r%<a\shref=(["'])Specification\.html\1>Specification</a>%,
'Specification' %>
<%= description %>
<% if method.aliases.any? -%>
Also known as: **<%= method.aliases.map(&:name).join(", ") %>**
<% end -%>
<% end -%>
<% end -%>

Expand Down
1 change: 1 addition & 0 deletions specification-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ next: /command-reference

<pre class="ruby"><span class="ruby-identifier">spec</span>.<span class="ruby-identifier">add_runtime_dependency</span> <span class="ruby-string">&#39;example&#39;</span>, <span class="ruby-string">&#39;~&gt; 1.1&#39;</span>, <span class="ruby-string">&#39;&gt;= 1.1.4&#39;</span>
</pre>
Also known as: **add_dependency**

<a id="author="> </a>

Expand Down

0 comments on commit 3df3cd4

Please sign in to comment.