14 | <%
15 | myself, *supers = @entry.ancestors
16 | n = 0
17 | %>
18 | <% unless @entry.alias? %>
19 | <%= _('ancestors') %>: <%= escape_html(myself.name) %>
20 | <% supers.each do |c| %>
21 | <%= @conf[:tochm_mode] ? "<" : a_href("?a=#{n}", "<") %> <%= class_link(c.name) %>
22 | <% n += 1 %>
23 | <% end %>
24 | <% end %>
25 |
26 | <% unless @entry.extended.empty? %>
27 |
extend: <%= @entry.extended.map {|c| class_link(c.name) }.join(', ') %>
28 | <% end %>
29 | <% unless @entry.aliases.empty? %>
30 |
aliases: <%=h @entry.aliases.map{|c| c.name}.join(', ') %>
31 | <% end %>
32 | <% unless @entry.dynamically_included.empty? %>
33 |
dynamic include:
34 | <%= @entry.dynamically_included.map{|m|
35 | class_link(m.name) + " (by " + library_link(m.library.name) + ")"
36 | }.join(", ")
37 | %>
38 | <% end %>
39 | <% unless @entry.dynamically_extended.empty? %>
40 |
dynamic extend:
41 | <%= @entry.dynamically_extended.map{|m|
42 | class_link(m.name) + " (by " + library_link(m.library.name) + ")"
43 | }.join(", ")
44 | %>
45 | <% end %>
46 |
47 | <%
48 | headline_push
49 | %>
50 | <%= headline(_("Abstract")) %>
51 | <%= compile_rd(@entry.source) %>
52 |
53 | <%
54 | ents = @entry.partitioned_entries(@alevel)
55 | items =
56 | [[_('Singleton Methods'), ents.singleton_methods ],
57 | [_('Instance Methods'), ents.instance_methods ],
58 | [_('Private Singleton Methods'), ents.private_singleton_methods ],
59 | [_('Private Instance Methods'), ents.private_instance_methods ],
60 | [_('Module Functions'), ents.module_functions ],
61 | [_('Constants'), ents.constants ],
62 | [_('Special Variables'), ents.special_variables ,'$']] %>
63 | <%= headline(_("Index")) %>
64 |
14 | <%
15 | myself, *supers = @entry.ancestors
16 | n = 0
17 | %>
18 | <% unless @entry.alias? %>
19 | <%= _('ancestors') %>: <%= escape_html(myself.name) %>
20 | <% supers.each do |c| %>
21 | <%= @conf[:tochm_mode] ? "<" : a_href("?a=#{n}", "<") %> <%= class_link(c.name) %>
22 | <% n += 1 %>
23 | <% end %>
24 | <% end %>
25 |
26 | <% unless @entry.extended.empty? %>
27 |
extend: <%= @entry.extended.map {|c| class_link(c.name) }.join(', ') %>
28 | <% end %>
29 | <% unless @entry.aliases.empty? %>
30 |
aliases: <%=h @entry.aliases.map{|c| c.name}.join(', ') %>
31 | <% end %>
32 | <% unless @entry.dynamically_included.empty? %>
33 |
dynamic include:
34 | <%= @entry.dynamically_included.map{|m|
35 | class_link(m.name) + " (by " + library_link(m.library.name) + ")"
36 | }.join(", ")
37 | %>
38 | <% end %>
39 | <% unless @entry.dynamically_extended.empty? %>
40 |
dynamic extend:
41 | <%= @entry.dynamically_extended.map{|m|
42 | class_link(m.name) + " (by " + library_link(m.library.name) + ")"
43 | }.join(", ")
44 | %>
45 | <% end %>
46 |
47 | <%
48 | headline_push
49 | %>
50 | <%= headline(_("Abstract")) %>
51 | <%= compile_rd(@entry.source) %>
52 |
53 | <%
54 | ents = @entry.partitioned_entries(@alevel)
55 | items =
56 | [[_('Singleton Methods'), ents.singleton_methods ],
57 | [_('Instance Methods'), ents.instance_methods ],
58 | [_('Private Singleton Methods'), ents.private_singleton_methods ],
59 | [_('Private Instance Methods'), ents.private_instance_methods ],
60 | [_('Module Functions'), ents.module_functions ],
61 | [_('Constants'), ents.constants ],
62 | [_('Special Variables'), ents.special_variables ,'$']] %>
63 | <%= headline(_("Index")) %>
64 |
3 |
4 |
5 | <%= manual_home_link() %>
6 | > <%= _('All Libraries') %>
7 | > library <%=h @entry.name %>
8 |
9 | <%
10 | headline_init
11 | %>
12 | <%= headline(@entry.id == '_builtin' ? '組み込みライブラリ' : "library #{@entry.name}") %>
13 |
14 | <%
15 | headline_push
16 | all_classes = @entry.all_classes
17 | err_classes = @entry.all_error_classes.sort
18 | modules = @entry.all_modules
19 | objects = @entry.all_objects
20 | classes = all_classes - err_classes - modules - objects
21 | %>
22 |
23 |
24 | <%= headline(_("Abstract")) %>
25 | <%= compile_rd(@entry.source) %>
26 | <%
27 | [[classes, _('Classes')],
28 | [modules, _('Modules')],
29 | [objects, _('Objects')],
30 | [err_classes, _('Exception Classes')]].each do |cs, msg|
31 | unless cs.empty?
32 | %>
33 | <%= headline(msg) %>
34 |
35 | <% draw_tree(cs) do |c, indent| %>
36 |
37 | |
38 | <%= " " * indent %>
39 | <%= class_link(c.name, c.name) %>
40 | |
41 | <%= compile_rd(c.synopsis_source) %> |
42 |
43 | <% end %>
44 |
45 | <%
46 | end
47 | end
48 | %>
49 | <%
50 | [[@entry.requires.sort, _('Required Libraries')],
51 | [(@entry.sublibraries - @entry.requires).sort, _('Sub-Libraries')]].each do |cs, msg|
52 | unless cs.empty?
53 | %>
54 | <%= headline(msg) %>
55 |
56 | <% cs.each do |c| %>
57 |
58 | | <%= library_link(c.name) %> |
59 | <%= compile_rd(c.synopsis_source) %> |
60 | <% end %>
61 |
62 | <%
63 | end
64 | end
65 | %>
66 | <%
67 | ents = @entry.methods.sort
68 | unless ents.empty?
69 | %>
70 | <%= headline(_("Added/Redefined Methods")) %>
71 |
72 | <% headline_push
73 | ents.each do |m|
74 | %>
75 |
76 | <%= compile_method(m, true) %>
77 | <%
78 | end
79 | headline_pop
80 | %>
81 |
82 | <%
83 | end
84 | %>
85 |
86 |
87 |
88 |
89 |
3 |
4 |
5 | <%= manual_home_link() %>
6 | > <%= _('All Libraries') %>
7 | > <%= friendly_library_link(@entry.library.name) %>
8 | > <%=h _(@entry.type.to_s + ' %s', @entry.name) %>
9 |
10 |
11 | <%
12 | headline_init
13 | %>
14 | <%= headline("#{@entry.type} #{@entry.name}" + @entry.ancestors[1..@alevel].map{|c| " + #{c.name}" }.join) %>
15 |
16 | <%
17 | myself, *supers = @entry.ancestors
18 | n = 0
19 | %>
20 | <%= _('ancestors') %>: <%= escape_html(myself.name) %>
21 | <% supers.each do |c| %>
22 | <%= @conf[:tochm_mode] ? "<" : a_href("?a=#{n}", "<") %> <%= class_link(c.name) %>
23 | <% n += 1 %>
24 | <% end %>
25 |
26 | <% unless @entry.extended.empty? %>
27 |
extend: <%= @entry.extended.map {|c| class_link(c.name) }.join(', ') %>
28 | <% end %>
29 | <% unless @entry.aliases.empty? %>
30 |
aliases: <%=h @entry.aliases.map{|c| c.name}.join(', ') %>
31 | <% end %>
32 | <% unless @entry.dynamically_included.empty? %>
33 |
dynamic include:
34 | <%= @entry.dynamically_included.map{|m|
35 | class_link(m.name) + " (by " + library_link(m.library.name) + ")"
36 | }.join(", ")
37 | %>
38 | <% end %>
39 | <% unless @entry.dynamically_extended.empty? %>
40 |
dynamic extend:
41 | <%= @entry.dynamically_extended.map{|m|
42 | class_link(m.name) + " (by " + library_link(m.library.name) + ")"
43 | }.join(", ")
44 | %>
45 | <% end %>
46 |
47 |
48 | <% headline_push %>
49 |
50 | <%= headline("Abstract") %>
51 | <%= compile_rd(@entry.source) %>
52 |
53 | <%
54 | ents = @entry.partitioned_entries(@alevel)
55 | [[_('Singleton Methods'), ents.singleton_methods ],
56 | [_('Instance Methods'), ents.instance_methods ],
57 | [_('Private Singleton Methods'), ents.private_singleton_methods ],
58 | [_('Private Instance Methods'), ents.private_instance_methods ],
59 | [_('Module Functions'), ents.module_functions ],
60 | [_('Constants'), ents.constants ],
61 | [_('Special Variables'), ents.special_variables ],
62 | [_('Added Methods'), ents.added ] ]\
63 | .each do |label, entries|
64 | unless entries.empty? %>
65 | <%= headline(label) %>
66 |
67 | <%
68 | headline_push
69 | entries.each do |m|
70 | %>
71 |
72 | <%= compile_method(m) %>
73 | <%
74 | end
75 | headline_pop
76 | %>
77 |
78 | <%
79 | end
80 | end
81 | headline_pop
82 | %>
83 |
84 |
85 |