Sha256: 573f48597eda36254434f2c541dc46fe9b4cd865690f0bb28cc091a3999d167f

Contents?: true

Size: 1.1 KB

Versions: 10

Compression:

Stored size: 1.1 KB

Contents

<div id="classindex-section" class="nav-section">
  <h3>Class and Module Index</h3>

  <%-
  all_classes = @classes.group_by do |klass|
    klass.full_name[/\A[^:]++(?:::[^:]++(?=::))*+(?=::[^:]*+\z)/]
  end.delete_if do |_, klasses|
    !klasses.any?(&:display?)
  end
  link = proc do |index_klass, display = index_klass.display?|
    if display
      -%><code><a href="<%= rel_prefix %>/<%= index_klass.path %>"><%= index_klass.name %></a></code><%-
    else
      -%><code><%= index_klass.name %></code><%-
    end
  end
  if top = all_classes[nil]
    solo = top.one? {|klass| klass.display?}
    traverse = proc do |klasses| -%>
  <ul class="link-list">
      <%- klasses.each do |index_klass| -%>
        <%- if children = all_classes[index_klass.full_name] -%>
  <li><details<% if solo; solo = false %> open<% end %>><summary><% link.call(index_klass) %></summary>
          <%- traverse.call(children) -%>
  </ul></details>
        <%- elsif index_klass.display? -%>
  <li><% link.call(index_klass, true) %>
        <%- end -%>
      <%- end -%>
    <%- end -%>
    <%- traverse.call(top) -%>
  <%- end -%>
</div>

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
rdoc-6.8.1 lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml
rdoc-6.8.0 lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/rdoc-6.7.0/lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/rdoc-6.7.0/lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml
rdoc-6.6.3.1 lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml
rdoc-6.5.1.1 lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml
rdoc-6.6.2 lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml
rdoc-6.6.1 lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml
rdoc-6.6.0 lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml
rdoc-6.5.0 lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml