Class: RubyToken::Token

Inherits:
Object
  • Object
show all
Defined in:
lib/rdoc_patch.rb

Instance Method Summary collapse

Instance Method Details

#to_htmlObject



26
27
28
29
30
31
32
33
34
# File 'lib/rdoc_patch.rb', line 26

def to_html
  html = CGI.escapeHTML(text)
  
  if text.size == 1 and '!@#$%^&*(){}?+/=[]\\|.,"\'<>-_;:'.include?(text)
    return "<strong>#{ html }</strong>"
  else
    return html
  end
end