File: server.rb

package info (click to toggle)
yard 0.9.16-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,472 kB
  • sloc: ruby: 29,854; makefile: 24
file content (13 lines) | stat: -rw-r--r-- 401 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true
module YARD
  module Server
    # Registers a static path to be used in static asset lookup.
    # @param [String] path the pathname to register
    # @return [void]
    # @since 0.6.2
    def self.register_static_path(path)
      static_paths = Commands::StaticFileCommand::STATIC_PATHS
      static_paths.push(path) unless static_paths.include?(path)
    end
  end
end