Method: YARD::Server::Router#route_search

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

#route_search(library, paths) ⇒ Array(Numeric,Hash,Array<String>)? (protected)

Routes requests from #search_prefix and calls the appropriate command

Parameters:

Returns:

Since:

  • 0.6.0


159
160
161
162
# File 'lib/yard/server/router.rb', line 159

def route_search(library, paths)
  return unless paths.empty?
  SearchCommand.new(final_options(library, paths)).call(request)
end