I just installed the package ruby in Xenial, and I noticed a couple of javascript packages where also required. Does anyone know why they are needed by ruby? Note that I have NOT installed ruby-on-rails.

If you see the ruby package page for ruby 2.3, you can see it requires libjs-jquery, which basically puts a few jquery files, such as


In the file system. Does ruby really need jquery?

1 Answer 1


Oh, I found it. It is used by rdoc, as can be seen by searching the ruby sources

e.g. the first search result is:


Showing the top two matches Last indexed on 26 Jun


    return jQuery.grep(query.split(/(\s+|::?|\(\)?)/), function(string) {
      return string.match(/\S/);

  function buildRegexps(queries) {
    return jQuery.map(queries, function(query) {

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .