Skip to content

Commit

Permalink
remove lots of erb noise
Browse files Browse the repository at this point in the history
  • Loading branch information
qrush committed May 17, 2011
1 parent 9593352 commit 7cadd05
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 116 deletions.
40 changes: 21 additions & 19 deletions rdoc/generator/template/jekdoc/classpage.rhtml
Expand Up @@ -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 %>
Expand Down
97 changes: 0 additions & 97 deletions specification-reference.md
Expand Up @@ -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;]
Expand All @@ -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

Expand Down

0 comments on commit 7cadd05

Please sign in to comment.