Class: YARD::Server::Commands::LibraryIndexCommand
- Inherits:
-
Base
- Object
- Base
- 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)
-
- (Object) options
Returns the value of attribute options.
Attributes inherited from Base
adapter, body, caching, command_options, headers, path, request, status
Instance Method Summary (collapse)
Methods inherited from Base
#cache, #call, #initialize, #not_found, #redirect, #render
Constructor Details
This class inherits a constructor from YARD::Server::Commands::Base
Instance Attribute Details
- (Object) options
Returns the value of attribute options
6 7 8 |
# File 'lib/yard/server/commands/library_index_command.rb', line 6 def @options end |
Instance Method Details
- (Object) run
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/yard/server/commands/library_index_command.rb', line 8 def run return unless path.empty? self. = SymbolHash.new(false).update( :markup => :rdoc, :format => :html, :libraries => adapter.libraries, :adapter => adapter, :template => :doc_server, :type => :library_list ) render end |