Class: YARD::Server::Commands::RootRequestCommand

Inherits:
Base
  • Object
show all
Includes:
StaticFileHelpers
Defined in:
lib/yard/server/commands/root_request_command.rb

Overview

Serves requests from the root of the server

Since:

  • 0.6.0

Instance Method Summary collapse

Methods included from StaticFileHelpers

#favicon?, #static_template_file?

Constructor Details

This class inherits a constructor from YARD::Server::Commands::Base

Instance Method Details

#runObject

Since:

  • 0.6.0


8
9
10
# File 'lib/yard/server/commands/root_request_command.rb', line 8

def run
  static_template_file? || favicon? || not_found
end