Method: YARD::Templates::Template::ClassMethods#full_paths
- Defined in:
- lib/yard/templates/template.rb
#full_paths ⇒ Array<String>
Note:
This method caches path results. Paths should not be modified after this method is called; call #reset_full_paths to reset cache.
Returns a list of full paths.
65 66 67 68 69 70 71 72 73 74 |
# File 'lib/yard/templates/template.rb', line 65 def full_paths reset_full_paths unless defined? @cached_included_modules return @full_paths if included_modules == @cached_included_modules @cached_included_modules = included_modules @full_paths = included_modules.inject([full_path]) do |paths, mod| paths |= mod.full_paths if mod.respond_to?(:full_paths) paths end end |