module YARD::Templates::Helpers::BaseHelper

def link_file(filename, title = nil, anchor = nil) # rubocop:disable Lint/UnusedMethodArgument

Other tags:
    Since: - 0.5.5

Returns:
  • (String) - the link to the file

Parameters:
  • anchor (String) -- optional anchor
  • title (String) -- the title of the link
  • filename (String) -- the filename to link to
def link_file(filename, title = nil, anchor = nil) # rubocop:disable Lint/UnusedMethodArgument
  return filename.filename if CodeObjects::ExtraFileObject === filename
  filename
end