summaryrefslogtreecommitdiffhomepage
path: root/lib/yard/mruby/templates
diff options
context:
space:
mode:
authorSeba Gamboa <[email protected]>2015-09-29 11:51:21 -0300
committerSeba Gamboa <[email protected]>2015-09-29 11:51:21 -0300
commitd034793bd327d78aba0d99d719336d597e2413b0 (patch)
tree3b4527efc2d554ddea6cd4c28b71edf85b9d2e7c /lib/yard/mruby/templates
parent5c3e2565132aa2b0141580c2caabbe2c6a8c2470 (diff)
downloadyard-mruby-d034793bd327d78aba0d99d719336d597e2413b0.tar.gz
yard-mruby-d034793bd327d78aba0d99d719336d597e2413b0.zip
Handle return types
Diffstat (limited to 'lib/yard/mruby/templates')
-rw-r--r--lib/yard/mruby/templates/helpers/html_helper.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/yard/mruby/templates/helpers/html_helper.rb b/lib/yard/mruby/templates/helpers/html_helper.rb
index 46b8664..7d1e159 100644
--- a/lib/yard/mruby/templates/helpers/html_helper.rb
+++ b/lib/yard/mruby/templates/helpers/html_helper.rb
@@ -5,11 +5,13 @@ module YARD::MRuby::Templates
def fsignature(func, link = true, show_extras = true)
name = func.name
- title = "<strong>%s</strong>" % [h(name)]
+ prefix = 'void'
+ params = 'void'
+ title = "%s <strong>%s</strong>( %s )" % [h(prefix), h(name), h(params)]
if link
url = url_for(func)
- link_url(url, title, :title => title)
+ link_url(url, title, :title => name)
else
title
end