Class: YARD::Templates::Helpers::Markup::RDocMarkupToHtml
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/yard/templates/helpers/markup/rdoc_markup.rb |
Instance Attribute Summary
- #from_path rw
Instance Method Summary
- #accept_paragraph(*args)
-
#handle_special_HYPERLINK(special)
Disable auto-link of URLs.
Instance Attribute Details
#from_path (rw)
[ GitHub ]# File 'lib/yard/templates/helpers/markup/rdoc_markup.rb', line 93
attr_accessor :from_path
Instance Method Details
#accept_paragraph(*args)
[ GitHub ]# File 'lib/yard/templates/helpers/markup/rdoc_markup.rb', line 100
def accept_paragraph(*args) par = args.last text = par.respond_to?(:txt) ? par.txt : par.text @hyperlink = text =~ /\{(https?:|mailto:|link:|www\.)/ ? true : false super end
#handle_special_HYPERLINK(special)
Disable auto-link of URLs
# File 'lib/yard/templates/helpers/markup/rdoc_markup.rb', line 96
def handle_special_HYPERLINK(special) # rubocop:disable Style/MethodName @hyperlink ? special.text : super end