<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="ja-JP">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=<%=h charset() %>">
  <meta http-equiv="Content-Language" content="ja-JP">
  <link rel="stylesheet" type="text/css" href="<%=h css_url() %>">
  <title>library <%=h @entry.name %></title>
</head>
<body>

<p>
<%= manual_home_link() %>
&gt; <a href="<%= library_index_url() %>"><%= _('All Libraries') %></a>
&gt; <%= friendly_library_name(@entry.name) %>
</p>
<%= search_form() %>

<%
    headline_init
%>
<%= headline(@entry.id == '_builtin' ? _('Builtin Library') : "library #{@entry.name}") %>

<%
    headline_push
    required_classes = (@entry.sublibraries & @entry.requires).map{|lib| lib.classes }.flatten
    all_classes = (@entry.classes + required_classes).uniq.sort
    err_classes = all_classes.select {|c| c.ancestors.any?{|k| k.name == 'Exception' }}.sort
    classes = (all_classes - err_classes).sort
%>


<%= headline(_("Abstract")) %>
<%= compile_rd(@entry.source) %>
<%
  [[classes,      _('Classes/Modules')],
   [err_classes,  _('Exception Classes')]].each do |cs, msg|
    unless cs.empty?
%>
<%= headline(msg) %>
<table class="entries" class="libraries">
<%    cs.each do |c| %>
<tr>
<td class="signature"><%= class_link(c.name, "#{c.type} #{c.name}") %></td>
<td class="description"><%= compile_rd(c.synopsis_source) %></td>
<%    end %>
</table>
<%
    end
  end
%>
<%
  [[@entry.requires.sort, _('Required Libraries')],
   [(@entry.sublibraries - @entry.requires).sort, _('Sub-Libraries')]].each do |cs, msg|
    unless cs.empty?
%>
<%= headline(msg) %>
<table class="entries" class="libraries">
<%    cs.each do |c| %>
<tr>
<td class="signature"><%= library_link(c.name) %></td>
<td class="description"><%= compile_rd(c.synopsis_source) %></td>
<%    end %>
</table>
<%
    end
  end
%>
<%
    ents = @entry.methods.sort
    unless ents.empty? %>
<%= headline(_("Added/Redefined Methods")) %>
<p><code>
<%    ents.each do |m| %>
<%= link_to_method(m, true) %>
<%    end %>
</code></p>
<%  end %>

</body>
</html>
