Method: RDoc::Markup::ToLabel#handle_regexp_TIDYLINK
- Defined in:
- lib/rdoc/markup/to_label.rb
#handle_regexp_TIDYLINK(target) ⇒ Object
Converts the TIDYLINK target
to just the text part
51 52 53 54 55 56 57 |
# File 'lib/rdoc/markup/to_label.rb', line 51 def handle_regexp_TIDYLINK target text = target.text return text unless text =~ /\{(.*?)\}\[(.*?)\]/ or text =~ /(\S+)\[(.*?)\]/ $1 end |