Sha256: a0de4c6f2b9f5b06e7fd1579340596dc8ca949942d21d3a6268513d7f324605f
Contents?: true
Size: 1.14 KB
Versions: 2
Compression:
Stored size: 1.14 KB
Contents
<% has_accepted_values = @argument_tags.any? { |e| Array(e.accepted_values).any? } %> <table> <thead> <tr> <th>Name</th> <th>Type</th> <% if has_accepted_values %><th>Accepted Values</th><% end %> <th>Required?</th> <th>Description</th> </tr> </thead> <tbody> <% @argument_tags.each do |tag| %> <tr> <td><code class="argument-name"><%= h tag.unscoped_name %></code></td> <td><span class="argument-type"><%= tag.type %></span></td> <% if has_accepted_values %> <td> <ul class="argument-values"> <% (tag.accepted_values || []).each do |value| %> <li><%= value %></li> <% end %> </ul> </td> <% end %> <td> <% if tag.is_required %> <em class="argument-required">Yes</em> <% else %> <em class="argument-optional">No</em> <% end %> </td> <td> <% if !tag.text.empty? %> <%= html_markup_markdown(tag.text) %> <% end %> </td> </tr> <% end %> </tbody> </table>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yard-api-0.2.2 | templates/api/tags/html/argument/_table.erb |
yard-api-0.2.1 | templates/api/tags/html/argument/_table.erb |