Class: YARD::Server::Commands::StaticFileCommand
- Inherits:
-
LibraryCommand
- Object
- Base
- LibraryCommand
- YARD::Server::Commands::StaticFileCommand
- Includes:
- StaticFileHelpers
- Defined in:
- lib/yard/server/commands/static_file_command.rb
Overview
Serves static content when no other router matches a request
Constant Summary collapse
- STATIC_PATHS =
Defines the paths used to search for static assets. To define an extra path, use YARD::Server.register_static_path rather than modifying this constant directly. Also note that files in the document root will always take precedence over these paths.
[]
Instance Attribute Summary
Attributes inherited from LibraryCommand
#incremental, #library, #options, #serializer, #single_library, #use_fork
Attributes inherited from Base
#adapter, #body, #caching, #command_options, #headers, #path, #request, #status
Instance Method Summary collapse
Methods included from StaticFileHelpers
#favicon?, find_file, #static_template_file?
Methods inherited from LibraryCommand
Methods inherited from Base
Constructor Details
This class inherits a constructor from YARD::Server::Commands::LibraryCommand
Instance Method Details
#run ⇒ Object
17 18 19 |
# File 'lib/yard/server/commands/static_file_command.rb', line 17 def run static_template_file? || not_found end |