Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 37b3d60767
Fetching contributors…

Cannot retrieve contributors at this time

116 lines (110 sloc) 3.072 kb
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>
<%= klass.name %>
</title>
<style>
dt, dd {
margin: 0;
}
dt.name {
float: left;
}
dd.explanation {
clear: both;
margin-bottom: 0.5em;
margin-left: 1.5em;
}
dt.name {
font-weight: bold;
}
</style>
</head>
<body>
<h1>
<% if klass.type == 'class' %>
<span class="class">
<%= klass.type.capitalize %>
<a href="<%= klass.path %>">
<%= klass.full_name %>
</a>
<% if klass.superclass %>
inherits from
<% end %>
<% unless String === klass.superclass %>
<a href="<%= klass.superclass.path %>">
<%= klass.superclass.name %>
</a>
<% else %>
<%= klass.superclass %>
<% end %>
</span>
<% else %>
<span class="module">
<%= klass.type.capitalize %>
<a href="<%= klass.path %>">
<%= klass.name %>
</a>
</span>
<% end %>
</h1>
<% if klass.description && !klass.description.empty? %>
<div id="description" class="alt">
<%= h klass.description %>
</div>
<% end %>
<!-- Constants -->
<% unless klass.constants.empty? %>
<h3>Constants</h3>
<% klass.constants.sort_by { |x| x.name }.each do |const| %>
<dl>
<dt class="name">
<%= h const.name %>
</dt>
<dd class="explanation"><%= h const.description %></dd>
</dl>
<% end %>
<% end %>
<!-- Attributes -->
<% unless klass.attributes.empty? %>
<h3>Attributes</h3>
<% klass.attributes.sort_by { |x| x.name }.each do |attr| %>
<dl>
<dt class="name">
<%= h attr.name %>
<span class="optional"><%= attr.rw %></span>
</dt>
<dd class="explanation"><%= h attr.description %></dd>
</dl>
<% end %>
<% end %>
<!-- Class Methods -->
<% unless klass_methods.empty? %>
<h3>Public Class Methods</h3>
<% klass_methods.each do |method| %>
<dl class="method">
<dt class="name">
<a name="<%= method.aref %>" ></a>
<%= h method.name %><%= h method.params %>
</dt>
<dd class="explanation"><%= h method.description %></dd>
</dl>
<% end %>
<% end %>
<!-- Instance Methods -->
<% unless instance_methods.empty? %>
<h3>Public Instance Methods</h3>
<% instance_methods.each do |method| %>
<dl class="method">
<dt class="name">
<a name="<%= method.aref %>" ></a>
<%= h method.name %><%= h method.params %>
</dt>
<dd class="explanation"><%= h method.description %></dd>
</dl>
<% end %>
<% end %>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.