Sha256: 4e5b0ad82156d510d69d261b46b1a55b9e8bc962d7ad607ceeb2bb3d148ae71b

Contents?: true

Size: 1.89 KB

Versions: 3

Compression:

Stored size: 1.89 KB

Contents

<!DOCTYPE html>
<html lang="en">
<head>
    <title><%= h klass.full_name %></title>
    <meta charset="<%= @options.charset %>" />
    <%= include_template '_head.rhtml', {:rel_prefix => rel_prefix, :tree_keys => klass.full_name.split('::') } %>

    <meta property="og:title" value="<%= klass.full_name %>">

  <% unless (description = klass.description).empty? %>
    <% human_desc = truncate(strip_tags(description.gsub("\n", " ").strip)) %>
    <meta name="description" content="<%= human_desc %>">
    <meta property="og:description" content="<%= human_desc %>">
  <% end %>

    <meta name="keywords" content="<%= klass.full_name %> class, <%= klass.method_list.map(&:name).join(", ") %>">
</head>

<body>

    <%= include_template '_panel.rhtml' %>

    <div class="banner">
        <% if ENV['HORO_PROJECT_NAME'] %>
            <span><%= ERB::Util.html_escape(ENV['HORO_PROJECT_NAME']) %> <%= ERB::Util.html_escape(ENV['HORO_PROJECT_VERSION']) %></span><br />
        <% end %>
        <h2>
            <span class="type"><%= klass.module? ? 'Module' : 'Class' %></span>
            <%= h klass.full_name %>
            <% if klass.type == 'class' %>
                <span class="parent">&lt;
                    <% if String === klass.superclass %>
                    <%= klass.superclass %>
                    <% elsif !klass.superclass.nil? %>
                    <a href="<%= klass.aref_to klass.superclass.path %>"><%= h klass.superclass.full_name %></a>
                    <% end %>
                </span>
            <% end %>
        </h2>
        <ul class="files">
            <% klass.in_files.each do |file| %>
            <li><a href="<%= "#{rel_prefix}/#{h file.path}" %>"><%= h file.absolute_name %></a></li>
            <% end  %>
        </ul>
    </div>

    <div id="bodyContent">
        <%= include_template '_context.rhtml', {:context => klass, :rel_prefix => rel_prefix} %>
    </div>
  </body>
</html>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sdoc-2.0.4 lib/rdoc/generator/template/rails/class.rhtml
sdoc-2.0.3 lib/rdoc/generator/template/rails/class.rhtml
sdoc-2.0.2 lib/rdoc/generator/template/rails/class.rhtml