Permalink
Browse files

remove lots of erb noise

  • Loading branch information...
1 parent 9593352 commit 7cadd05e024e3f10e629d2d635337a444fec2dbc @qrush qrush committed May 17, 2011
Showing with 21 additions and 116 deletions.
  1. +21 −19 rdoc/generator/template/jekdoc/classpage.rhtml
  2. +0 −97 specification-reference.md
@@ -9,25 +9,27 @@ next: /rubygems-org-api
<%= klass.description %>
-<% sections = {} %>
-<% klass.each_section do |section, constants, attributes| %>
- <% sections[section] = attributes if section.title =~ /attributes/ %>
-<% end %>
-
-<% all_methods = {} %>
-<% sections.to_a.reverse.each do |section, attributes| %>
- <% all_methods[section] = {} %>
- <% attributes.each do |attrib| %>
- <% all_methods[section][attrib.name] = attrib %>
- <% end %>
- <% klass.methods_by_type(section).each do |type, visibilities| %>
- <% visibilities.each do |visibility, methods| %>
- <% methods.each do |method| %>
- <% all_methods[section][method.name] = method %>
- <% end %>
- <% end %>
- <% end %>
-<% end %>
+<%
+ sections = {}
+ klass.each_section do |section, constants, attributes|
+ sections[section] = attributes if section.title =~ /attributes/
+ end
+
+ all_methods = {}
+ sections.to_a.reverse.each do |section, attributes|
+ all_methods[section] = {}
+ attributes.each do |attrib|
+ all_methods[section][attrib.name] = attrib
+ end
+ klass.methods_by_type(section).each do |type, visibilities|
+ visibilities.each do |visibility, methods|
+ methods.each do |method|
+ all_methods[section][method.name] = method
+ end
+ end
+ end
+ end
+%>
<% all_methods.each do |section, methods| %>
## <%= section.title %>
View
@@ -15,7 +15,6 @@ metadata for a <a href="../Gem.html">Gem</a>. Typically defined in a
<pre>Gem::Specification.new do |s|
s.name = 'example'
s.version = '0.1.0'
- s.date = '2011-05-17'
s.summary = &quot;This is an example!&quot;
s.description = &quot;Much longer explanation of the example!&quot;
s.authors = [&quot;Ruby Coder&quot;]
@@ -24,103 +23,7 @@ metadata for a <a href="../Gem.html">Gem</a>. Typically defined in a
s.homepage = 'http://rubygems.org/gems/example'
end</pre>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
## Required gemspec attributes

0 comments on commit 7cadd05

Please sign in to comment.