Method: RDoc::Markup::ToLabel#convert

Defined in:
lib/rdoc/markup/to_label.rb

#convert(text) ⇒ Object

Converts text to an HTML-safe label



32
33
34
35
36
# File 'lib/rdoc/markup/to_label.rb', line 32

def convert text
  label = convert_flow @am.flow text

  CGI.escape(label).gsub('%', '-').sub(/^-/, '')
end