Method: YARD::Server::Commands::LibraryIndexCommand#run

Defined in:
lib/yard/server/commands/library_index_command.rb

#runObject

Since:

  • 0.6.0

[View source]

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.options = SymbolHash.new(false).update(
    :markup => :rdoc,
    :format => :html,
    :libraries => adapter.libraries,
    :adapter => adapter,
    :template => :doc_server,
    :type => :library_list
  )
  render
end