File: class.rhtml

package info (click to toggle)
ruby-sdoc 0.4.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 896 kB
  • ctags: 523
  • sloc: ruby: 746; makefile: 3
file content (39 lines) | stat: -rwxr-xr-x 1,654 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title><%= h klass.full_name %></title>
    <meta http-equiv="Content-Type" content="text/html; charset=<%= @options.charset %>" />
    <%= include_template '_head.rhtml', {:rel_prefix => rel_prefix} %>
</head>

<body>     
    <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 %>
        <h1>
            <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 %>
        </h1>
        <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>