diff options
Diffstat (limited to 'lib/yard/mruby/templates/helpers/html_helper.rb')
| -rw-r--r-- | lib/yard/mruby/templates/helpers/html_helper.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/yard/mruby/templates/helpers/html_helper.rb b/lib/yard/mruby/templates/helpers/html_helper.rb new file mode 100644 index 0000000..46b8664 --- /dev/null +++ b/lib/yard/mruby/templates/helpers/html_helper.rb @@ -0,0 +1,20 @@ +module YARD::MRuby::Templates + module Helpers + # Helper methods for text template formats. + module HTMLHelper + + def fsignature(func, link = true, show_extras = true) + name = func.name + title = "<strong>%s</strong>" % [h(name)] + + if link + url = url_for(func) + link_url(url, title, :title => title) + else + title + end + end + + end + end +end |
