Method: YARD::Templates::Helpers::MarkupHelper#markup_file_contents

Defined in:
lib/yard/templates/helpers/markup_helper.rb

#markup_file_contents(contents) ⇒ String

Deprecated.

Strips any shebang lines on the file contents that pertain to markup or preprocessing data.

Returns:

  • (String)

    the file contents minus any preprocessing tags

Since:

  • 0.6.0

[View source]

140
141
142
# File 'lib/yard/templates/helpers/markup_helper.rb', line 140

def markup_file_contents(contents)
  contents =~ MARKUP_FILE_SHEBANG ? $' : contents
end