summaryrefslogtreecommitdiffhomepage
path: root/templates/default/function_details/html/source.erb
diff options
context:
space:
mode:
authorSeba Gamboa <[email protected]>2015-09-25 13:12:22 -0300
committerSeba Gamboa <[email protected]>2015-09-25 13:12:22 -0300
commit48fb10fef522ab9262061bc612b44d74a8bda17d (patch)
treec48dcb77245e4a6b15af4366e96c31d6eb1cdd93 /templates/default/function_details/html/source.erb
parente0e43a79d282d69f2f45d5cf71e0e1154357d181 (diff)
downloadyard-mruby-48fb10fef522ab9262061bc612b44d74a8bda17d.tar.gz
yard-mruby-48fb10fef522ab9262061bc612b44d74a8bda17d.zip
Listing functions
Diffstat (limited to 'templates/default/function_details/html/source.erb')
-rw-r--r--templates/default/function_details/html/source.erb10
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/default/function_details/html/source.erb b/templates/default/function_details/html/source.erb
new file mode 100644
index 0000000..12740cb
--- /dev/null
+++ b/templates/default/function_details/html/source.erb
@@ -0,0 +1,10 @@
+<table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines"><%= "\n\n\n" %><%= h format_lines(object) %></pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File '<%= h object.file %>'<% if object.line %>, line <%= object.line %><% end %></span><%= "\n\n" %><%= html_syntax_highlight object.source %></pre>
+ </td>
+ </tr>
+</table>