Method: YARD::Server.register_static_path

Defined in:
lib/yard/server.rb

.register_static_path(path) ⇒ void

This method returns an undefined value.

Registers a static path to be used in static asset lookup.

Parameters:

  • path (String)

    the pathname to register

Since:

  • 0.6.2


7
8
9
# File 'lib/yard/server.rb', line 7

def self.register_static_path(path)
  Commands::StaticFileCommand::STATIC_PATHS.push(path)
end