class YARD::Server::Commands::SearchCommand

def serve_xhr

def serve_xhr
  headers['Content-Type'] = 'text/plain'
  self.body = visible_results.map {|o|
    [(o.type == :method ? o.name(true) : o.name).to_s,
     o.path,
     o.namespace.root? ? '' : o.namespace.path,
     url_for(o)].join(",")
  }.join("\n")
end