module YARD::Server

Public Instance Methods

route_list(library, paths) click to toggle source

Provide the full list of features and tags

# File lib/yard/server/router.rb, line 16
def route_list(library, paths)
    
  if paths && !paths.empty? && paths.first =~ /^(?:features|tags)$/
    case paths.shift
    when "features"; cmd = Commands::ListFeaturesCommand
    when "tags"; cmd = Commands::ListTagsCommand
    end
    cmd.new(final_options(library, paths)).call(request)
  else
    core_route_list(library,paths)
  end
  
end