<% @title = "library #{@entry.name}" %>

<%= manual_home_link() %> > <%= _('All Libraries') %> > <%= friendly_library_name(@entry.name) %>

<%= 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.error_class? }.sort modules = all_classes.select{|c| c.module? }.sort objects = all_classes.select{|c| c.object? }.sort classes = (all_classes - err_classes - modules - objects).sort class_tree = classes.group_by{|c| c.superclass } class_root = class_tree.keys.select{|c| !c || !classes.include?(c)} class_root.map!{|c| class_tree[c] }.flatten! err_class_tree = err_classes.group_by{|c| c.superclass } err_class_root = err_class_tree.keys.select{|c| !c || !err_classes.include?(c)} err_class_root.map!{|c| err_class_tree[c] }.flatten! %> <%= headline(_("Abstract")) %> <%= compile_rd(@entry.source) %> <% draw_tree = proc do |list, tree, indent = 0| %> <% list.each do |c| %> <%= " " * indent %> <%= class_link(c.name, c.name) %> <%= compile_rd(c.synopsis_source) %> <% tree && tree[c] && draw_tree.call(tree[c], tree, indent + 1) end end %> <% [[class_root, class_tree , _('Classes')], [modules, nil , _('Modules')], [objects, nil , _('Objects')], [err_class_root, err_class_tree, _('Exception Classes')]].each do |cs, tree, msg| unless cs.empty? %> <%= headline(msg) %> <% draw_tree.call(cs, tree) %>
<% end end %> <% [[@entry.requires.sort, _('Required Libraries')], [(@entry.sublibraries - @entry.requires).sort, _('Sub-Libraries')]].each do |cs, msg| unless cs.empty? %> <%= headline(msg) %> <% cs.each do |c| %> <% end %>
<%= library_link(c.name) %> <%= compile_rd(c.synopsis_source) %>
<% end end %> <% ents = @entry.methods.sort unless ents.empty? %> <%= headline(_("Added/Redefined Methods")) %>

<% ents.each do |m| %> <%= link_to_method(m, true) %> <% end %>

<% end %>