Method: YARD::Server::Router#route_index

Defined in:
lib/yard/server/router.rb

#route_indexArray(Numeric,Hash,Array<String>)? (protected)

Routes for the index of a library / multiple libraries

Returns:

Since:

  • 0.6.0


140
141
142
143
144
145
146
# File 'lib/yard/server/router.rb', line 140

def route_index
  if adapter.options[:single_library]
    route_docs(adapter.libraries.values.first.first, [])
  else
    LibraryIndexCommand.new(adapter.options.merge(:path => '')).call(request)
  end
end