diff options
| author | Seba Gamboa <[email protected]> | 2015-09-25 10:11:59 -0300 |
|---|---|---|
| committer | Seba Gamboa <[email protected]> | 2015-09-25 10:11:59 -0300 |
| commit | 723c2d4bd9575f05b5272a9e2eacb45e1d538af3 (patch) | |
| tree | 3a1f99ea4ff260eca955c63bf8d76bd7589232e5 /templates/default/header | |
| parent | 5a6d8a0131140873fa1cd37bd3d76b0b06d633ae (diff) | |
| download | yard-mruby-723c2d4bd9575f05b5272a9e2eacb45e1d538af3.tar.gz yard-mruby-723c2d4bd9575f05b5272a9e2eacb45e1d538af3.zip | |
Headers and functions list
Diffstat (limited to 'templates/default/header')
| -rw-r--r-- | templates/default/header/html/function_summary.erb | 6 | ||||
| -rw-r--r-- | templates/default/header/html/setup.rb | 15 |
2 files changed, 16 insertions, 5 deletions
diff --git a/templates/default/header/html/function_summary.erb b/templates/default/header/html/function_summary.erb new file mode 100644 index 0000000..037daa4 --- /dev/null +++ b/templates/default/header/html/function_summary.erb @@ -0,0 +1,6 @@ +<ul class="summary"> + + <% function_listing.each do |func| %> + <%= yieldall :item => func %> + <% end %> +</ul> diff --git a/templates/default/header/html/setup.rb b/templates/default/header/html/setup.rb index 757657d..6e5f8f9 100644 --- a/templates/default/header/html/setup.rb +++ b/templates/default/header/html/setup.rb @@ -1,10 +1,15 @@ def init - puts "header!" - puts object.inspect super sections.push :header - sections.push :functions -rescue => error - puts error + sections.push :function_summary end + + +def function_listing + return @funcs if @funcs + + @funcs = object.functions + @funcs +end + |
