Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show aliases in specification reference #370

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading