Class: YARD::Server::Commands::LibraryIndexCommand
- Defined in:
- lib/yard/server/commands/library_index_command.rb
Overview
Returns the index of libraries served by the server.
Instance Attribute Summary collapse
Attributes inherited from Base
#adapter, #body, #caching, #command_options, #headers, #path, #request, #status
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from YARD::Server::Commands::Base
Instance Attribute Details
#options ⇒ Object
14 15 16 |
# File 'lib/yard/server/commands/library_index_command.rb', line 14 def @options end |
Instance Method Details
#run ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/yard/server/commands/library_index_command.rb', line 16 def run return unless path.empty? self. = LibraryIndexOptions.new .adapter = adapter .libraries = adapter.libraries .reset_defaults render end |