Method: YARD::Templates::Engine.register_template_path

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

.register_template_path(path) ⇒ void

This method returns an undefined value.

Registers a new template path in template_paths

Parameters:

  • path (String)

    a new template path



21
22
23
# File 'lib/yard/templates/engine.rb', line 21

def register_template_path(path)
  template_paths.push(path) unless template_paths.include?(path)
end