summaryrefslogtreecommitdiffhomepage
path: root/lib/yard/mruby/templates/helpers/html_helper.rb
blob: 46b866405e9334b5e2c79c0d82d89d7b95a8d186 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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