class YARD::Server::Commands::LibraryIndexCommand

Returns the index of libraries served by the server.

Attributes

options[RW]

Public Instance Methods

run() click to toggle source
# File lib/yard/server/commands/library_index_command.rb, line 8
def run
  return unless path.empty?

  self.options = SymbolHash.new(false).update(
    :markup => :rdoc,
    :format => :html,
    :libraries => adapter.libraries,
    :adapter => adapter,
    :template => :doc_server,
    :type => :library_list
  )
  render
end