File tree 2 files changed +5
-5
lines changed
rdoc/generator/template/rails 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 101
101
< td > =</ td >
102
102
< td class ="attr-value "> <%= h const . value %> </ td >
103
103
</ tr >
104
- <% if const . comment %>
104
+ <% if const . comment . present? %>
105
105
< tr valign ='top '>
106
106
< td > </ td >
107
107
< td colspan ="2 " class ="attr-desc "> <%= const . description . strip %> </ td >
174
174
<% if source_code %>
175
175
< details class ="method__source ">
176
176
< summary >
177
- < span class ="label "> Source code</ span >
177
+ < span class ="label "> 📝 Source code</ span >
178
178
</ summary >
179
179
180
180
< pre > < code class ="ruby "> <%= source_code %> </ code > </ pre >
181
181
<% if source_url %>
182
- < a href ="<%= source_url %> " target ="_blank " class ="github_url "> See on GitHub</ a >
182
+ < a href ="<%= source_url %> " target ="_blank " class ="github_url "> 🔎 See on GitHub</ a >
183
183
<% end %>
184
184
</ details >
185
185
<% elsif source_url %>
186
- < a href ="<%= source_url %> " target ="_blank " class ="github_url "> See on GitHub</ a >
186
+ < a href ="<%= source_url %> " target ="_blank " class ="github_url "> 🔎 See on GitHub</ a >
187
187
<% end %>
188
188
</ div >
189
189
<% end %> <%# methods.each %>
Original file line number Diff line number Diff line change @@ -31,6 +31,6 @@ def method_source_code_and_url(rdoc_method)
31
31
source_url = github_url ( Regexp . last_match ( 1 ) , line : Regexp . last_match ( 2 ) )
32
32
end
33
33
34
- [ rdoc_method . instance_of? ( RDoc ::GhostMethod ) ? nil : source_code , source_url ]
34
+ [ rdoc_method . instance_of? ( RDoc ::GhostMethod ) ? nil : h ( source_code ) , source_url ]
35
35
end
36
36
end
You can’t perform that action at this time.
0 commit comments