Method: YARD::Templates::Template::ClassMethods#find_file

Defined in:
lib/yard/templates/template.rb

#find_file(basename) ⇒ String

Searches for a file identified by basename in the template’s path as well as any mixed in template paths. Equivalent to calling #find_nth_file with index of 1.

Parameters:

  • basename (String)

    the filename to search for

Returns:

  • (String)

    the full path of a file on disk with filename basename in one of the template’s paths.

See Also:



98
99
100
# File 'lib/yard/templates/template.rb', line 98

def find_file(basename)
  find_nth_file(basename)
end