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)
-
- (Object) from_path
Returns the value of attribute from_path.
Instance Method Summary (collapse)
- - (Object) accept_paragraph(*args)
-
- (Object) handle_special_HYPERLINK(special)
Disable auto-link of URLs.
Instance Attribute Details
- (Object) from_path
Returns the value of attribute from_path
89 90 91 |
# File 'lib/yard/templates/helpers/markup/rdoc_markup.rb', line 89 def from_path @from_path end |
Instance Method Details
- (Object) accept_paragraph(*args)
96 97 98 99 100 101 |
# File 'lib/yard/templates/helpers/markup/rdoc_markup.rb', line 96 def accept_paragraph(*args) par = args.last text = par.respond_to?(:txt) ? par.txt : par.text @hyperlink = !!(text =~ /\{(https?:|mailto:|link:|www\.)/) super end |
- (Object) handle_special_HYPERLINK(special)
Disable auto-link of URLs
92 93 94 |
# File 'lib/yard/templates/helpers/markup/rdoc_markup.rb', line 92 def handle_special_HYPERLINK(special) @hyperlink ? special.text : super end |