Class: YARD::Templates::Helpers::Markup::RDocMarkupToHtml
- Inherits:
-
Object
- Object
- YARD::Templates::Helpers::Markup::RDocMarkupToHtml
- Defined in:
- lib/yard/templates/helpers/markup/rdoc_markup.rb
Instance Attribute Summary collapse
-
#from_path ⇒ Object
Returns the value of attribute from_path.
Instance Method Summary collapse
- #accept_paragraph(par) ⇒ Object
-
#handle_special_HYPERLINK(special) ⇒ Object
Disable auto-link of URLs.
Instance Attribute Details
#from_path ⇒ Object
Returns the value of attribute from_path.
65 66 67 |
# File 'lib/yard/templates/helpers/markup/rdoc_markup.rb', line 65 def from_path @from_path end |
Instance Method Details
#accept_paragraph(par) ⇒ Object
72 73 74 75 |
# File 'lib/yard/templates/helpers/markup/rdoc_markup.rb', line 72 def accept_paragraph(par) @hyperlink = !!(par.text =~ /\{(https?:|mailto:|link:|www\.)/) super end |
#handle_special_HYPERLINK(special) ⇒ Object
Disable auto-link of URLs
68 69 70 |
# File 'lib/yard/templates/helpers/markup/rdoc_markup.rb', line 68 def handle_special_HYPERLINK(special) @hyperlink ? special.text : super end |