File: class.texinfo.erb

package info (click to toggle)
jruby 1.5.1-1%2Bdeb6u1
  • links: PTS, VCS
  • area: non-free
  • in suites: squeeze-lts
  • size: 47,024 kB
  • ctags: 74,144
  • sloc: ruby: 398,155; java: 169,506; yacc: 3,782; xml: 2,469; ansic: 415; sh: 279; makefile: 78; tcl: 40
file content (44 lines) | stat: -rw-r--r-- 1,577 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
40
41
42
43
44
@node <%= @v['class']['full_name'].gsub(/::/, '-') %>
@chapter <%= @v['class']["classmod"] %> <%= @v['class']['full_name'] %>

<% if @v['class']["parent"] and @v['class']['par_url'] %>
Inherits <%= href @v['class']["par_url"], @v['class']["parent"] %><% end %>

<%= @v['class']["description"] %>

<% if @v['class']["includes"] %>
Includes
<%   @v['class']["includes"].each do |include| %>
* <%=  href include["aref"], include["name"] %>
<%   end # @v['class']["includes"] %>
<% end %>

<% if @v['class']["sections"] %>
<%   @v['class']["sections"].each do |section| %>
<%     if section["attributes"] %>
Attributes
<%       section["attributes"].each do |attributes| %>
* <%=      attributes["name"] %> <%= attributes["rw"] %> <%= attributes["a_desc"] %>
<%       end # section["attributes"] %>
<%     end %>
<%   end %>

<%   @v['class']["sections"].each do |section| %>
<%     if section["method_list"] %>
Methods
@menu
<%     section["method_list"].each_with_index do |method_list, i| %>
<%= i %>
<%       (method_list["methods"] || []).each do |method| %>
* <%= @v['class']['full_name'].gsub(/::/, '-') %><%= method_prefix method_list %><%= method['name'] %>::<% end %>
<% end %>
@end menu

<%     section["method_list"].each do |method_list| %>
<%       (method_list["methods"] || []).uniq.each do |method| %>
<%=        TexinfoTemplate.new(@v.merge({'method' => method, 'list' => method_list}),
                               'method.texinfo.erb').render %><% end %>
<%       end %>
<%     end # if section["method_list"] %>
<% end # @v['class']["sections"] %>
<% end %>