From 8aa895294b8d696489b51a5e69b2986f452da905 Mon Sep 17 00:00:00 2001 From: drbrain Date: Sat, 5 Feb 2011 06:20:57 +0000 Subject: Import RDoc 3.5.2 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- .../generator/template/darkfish/classpage.rhtml | 253 +++++++++++---------- 1 file changed, 138 insertions(+), 115 deletions(-) (limited to 'lib/rdoc/generator/template/darkfish/classpage.rhtml') diff --git a/lib/rdoc/generator/template/darkfish/classpage.rhtml b/lib/rdoc/generator/template/darkfish/classpage.rhtml index 4a1bdcdea9..856321532b 100644 --- a/lib/rdoc/generator/template/darkfish/classpage.rhtml +++ b/lib/rdoc/generator/template/darkfish/classpage.rhtml @@ -9,17 +9,13 @@ - - - - + + + + - +
@@ -45,7 +41,7 @@
- <% if !svninfo.empty? %> + <% if !svninfo.empty? then %>

Subversion Info

@@ -66,9 +62,8 @@
- + <% if klass.type == 'class' then %> - <% if klass.type == 'class' %>

Parent

<% if klass.superclass and not String === klass.superclass then %> @@ -79,8 +74,20 @@
<% end %> + <% unless klass.sections.length == 1 then %> + +
+

Sections

+ +
+ <% end %> + + <% unless klass.classes_and_modules.empty? then %> - <% unless klass.classes_and_modules.empty? %>

Namespace

<% end %> + <% unless klass.method_list.empty? then %> - <% unless klass.method_list.empty? %>

Methods

<% end %> + <% unless klass.includes.empty? then %> - <% unless klass.includes.empty? %>

Included Modules

- <% if $DEBUG_RDOC %> + <% if $DEBUG_RDOC then %>
toggle debugging
<% end %> @@ -164,126 +171,142 @@

<%= klass.full_name %>

-
+
<%= klass.description %> -
+
+ + <% klass.each_section do |section, constants, attributes| %> +
+ <% if section.title then %> +

+ <%= section.title %> + ↑ top +

+ <% end %> - - <% unless klass.constants.empty? %> -
-

Constants

-
- <% klass.each_constant do |const| %> -
<%= const.name %>
- <% if const.comment %> -
<%= const.description.strip %>
- <% else %> -
(Not documented)
- <% end %> + <% if section.comment then %> +
+ <%= section.description %> +
<% end %> -
-
- <% end %> - - - <% unless klass.attributes.empty? %> -
-

Attributes

- - <% klass.each_attribute do |attrib| %> -
- - <% if attrib.rw =~ /w/i %> - - <% end %> -
- <%= h attrib.name %>[<%= attrib.rw %>] -
-
- <% if attrib.comment %> - <%= attrib.description.strip %> - <% else %> -

(Not documented)

+ <% unless constants.empty? then %> + +
+

Constants

+
+ <% constants.each do |const| %> +
<%= const.name %>
+ <% if const.comment then %> +
<%= const.description.strip %>
+ <% else %> +
(Not documented)
+ <% end %> <% end %> -
+
<% end %> -
- <% end %> - - - <% klass.methods_by_type.each do |type, visibilities| - next if visibilities.empty? - visibilities.each do |visibility, methods| - next if methods.empty? %> -
-

<%= visibility.to_s.capitalize %> <%= type.capitalize %> Methods

- - <% methods.each do |method| %> -
"> - - - <% if method.call_seq %> - <% method.call_seq.strip.split("\n").each_with_index do |call_seq, i| %> -
- <%= call_seq.strip.gsub(/->/, '→').gsub( /^\w+\./m, '') %> - <% if i == 0 %> - click to toggle source + + <% unless attributes.empty? then %> + +
+

Attributes

+ + <% attributes.each do |attrib| %> +
+ + <% if attrib.rw =~ /w/i then %> + <% end %> +
+ <%= h attrib.name %>[<%= attrib.rw %>] +
+ +
+ <% if attrib.comment then %> + <%= attrib.description.strip %> + <% else %> +

(Not documented)

+ <% end %> +
<% end %> - <% else %> -
- <%= h method.name %><%= method.params %> - click to toggle source -
- <% end %> +
+ <% end %> -
- <% if method.comment %> - <%= method.description.strip %> + + <% klass.methods_by_type(section).each do |type, visibilities| + next if visibilities.empty? + visibilities.each do |visibility, methods| + next if methods.empty? %> +
+

<%= visibility.to_s.capitalize %> <%= type.capitalize %> Methods

+ + <% methods.each do |method| %> +
"> + + + <% if method.call_seq then %> + <% method.call_seq.strip.split("\n").each_with_index do |call_seq, i| %> +
+ <%= call_seq.strip.gsub(/->/, '→').gsub( /^\w+\./m, '') %> + <% if i == 0 then %> + click to toggle source + <% end %> +
+ <% end %> <% else %> -

(Not documented)

+
+ <%= h method.name %><%= method.params %> + click to toggle source +
<% end %> - <% if method.token_stream %> -
+
+ <% if method.comment then %> + <%= method.description.strip %> + <% else %> +

(Not documented)

+ <% end %> + + <% if method.token_stream then %> +
 <%= method.markup_code %>
 
+
+ <% end %>
- <% end %> -
- <% unless method.aliases.empty? %> -
- Also aliased as: <%= method.aliases.map do |aka| - if aka.parent then # HACK lib/rexml/encodings - %{#{h aka.name}} - else - h aka.name - end - end.join ", " %> -
- <% end %> + <% unless method.aliases.empty? then %> +
+ Also aliased as: <%= method.aliases.map do |aka| + if aka.parent then # HACK lib/rexml/encodings + %{#{h aka.name}} + else + h aka.name + end + end.join ", " %> +
+ <% end %> - <% if method.is_alias_for then %> - - <% end %> -
+ <% if method.is_alias_for then %> + + <% end %> +
- <% end %> -
- <% end - end %> + <% end %> +
+ <% end + end %> +
+ <% end %> -
+

[Validate]

-- cgit v1.2.3