Skip to content

Commit 741bd85

Browse files
committed
Support using @option tag on keyword arg splat parameter.
Fixes #729
1 parent aae520b commit 741bd85

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# HEAD
2+
3+
- Support using `@option` tag on keyword arg splat parameter. (#729)
4+
15
# 0.8.7.5 - October 26, 2014
26

37
- Fix linking of methods in top level namespace in method listing. (#776)

templates/default/tags/html/option.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<% if object.has_tag?(:option) %>
22
<% object.parameters.each do |param, default| %>
3-
<% tags = object.tags(:option).select {|x| x.name.to_s == param.to_s } %>
3+
<% tags = object.tags(:option).select {|x| x.name.to_s == param.to_s.sub(/^\*+/, '') } %>
44
<% next if tags.empty? %>
55
<p class="tag_title">Options Hash (<tt><%= param %></tt>):</p>
66
<ul class="option">

0 commit comments

Comments
 (0)