Sha256: 04fe15de4ea6679fc81b581b2882f7b783152eea3f608efaef9750d27216a369

Contents?: true

Size: 592 Bytes

Versions: 14

Compression:

Stored size: 592 Bytes

Contents

<% if object.has_tag?(:enum) %>
  <% object.parameters.each do |param, default| %>
    <% tags = object.tags(:enum).select {|x| x.name.to_s == param.to_s.sub(/^\*+|:$/, '') } %>
    <% next if tags.empty? %>
    <p class="tag_title">Enum Options (<tt><%= param %></tt>):</p>
    <ul class="option">
      <% for tag in tags %>
        <li>
          <span class="name"><%= tag.pair.name %></span>
          <% if tag.pair.text && tag.pair.text =~ /\S/ %>
            &mdash; <%= htmlify_line(tag.pair.text) %>
          <% end %>
        </li>
      <% end %>
    </ul>
  <% end %>
<% end %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
puppet-strings-4.1.3 lib/puppet-strings/yard/templates/default/tags/html/enum.erb
puppet-strings-4.1.2 lib/puppet-strings/yard/templates/default/tags/html/enum.erb
puppet-strings-4.1.1 lib/puppet-strings/yard/templates/default/tags/html/enum.erb
puppet-strings-4.1.0 lib/puppet-strings/yard/templates/default/tags/html/enum.erb
puppet-strings-4.0.0 lib/puppet-strings/yard/templates/default/tags/html/enum.erb
puppet-strings-4.0.0.rc.1 lib/puppet-strings/yard/templates/default/tags/html/enum.erb
puppet-strings-3.0.1 lib/puppet-strings/yard/templates/default/tags/html/enum.erb
puppet-strings-3.0.0 lib/puppet-strings/yard/templates/default/tags/html/enum.erb
puppet-strings-2.9.0 lib/puppet-strings/yard/templates/default/tags/html/enum.erb
puppet-strings-2.8.0 lib/puppet-strings/yard/templates/default/tags/html/enum.erb
puppet-strings-2.7.0 lib/puppet-strings/yard/templates/default/tags/html/enum.erb
puppet-strings-2.6.0 lib/puppet-strings/yard/templates/default/tags/html/enum.erb
puppet-strings-2.5.0 lib/puppet-strings/yard/templates/default/tags/html/enum.erb
puppet-strings-2.4.0 lib/puppet-strings/yard/templates/default/tags/html/enum.erb