Method: YARD::Templates::Helpers::MarkupHelper#markup_file_contents
- Defined in:
- lib/yard/templates/helpers/markup_helper.rb
permalink #markup_file_contents(contents) ⇒ String
Deprecated.
Use CodeObjects::ExtraFileObject#contents instead
Strips any shebang lines on the file contents that pertain to markup or preprocessing data.
140 141 142 |
# File 'lib/yard/templates/helpers/markup_helper.rb', line 140 def markup_file_contents(contents) contents =~ MARKUP_FILE_SHEBANG ? $' : contents end |