File: inherited_constants.erb

package info (click to toggle)
ruby-enumerable-statistics 2.0.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,036 kB
  • sloc: ansic: 1,808; ruby: 679; makefile: 11; sh: 4
file content (8 lines) | stat: -rwxr-xr-x 413 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
<% found_const = false %>
<% inherited_constant_list do |superclass, consts| %>
  <% if constant_listing.size == 0 && !found_const %><h2>Constant Summary</h2><% end %>
  <% found_const = true %>
  <h3 class="inherited">Constants <%= superclass.type == :class ? 'inherited' : 'included' %>
     from <%= linkify superclass %></h3>
  <p class="inherited"><%= consts.map {|c| linkify c }.join(", ") %></p>
<% end %>