This file is indexed.

/usr/lib/ruby/vendor_ruby/simple_navigation/adapters/padrino.rb is in ruby-simple-navigation 4.0.3-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
module SimpleNavigation
  module Adapters
    class Padrino < Sinatra
      def self.register(app)
        SimpleNavigation.set_env(::Padrino.root, ::Padrino.env)
        ::Padrino::Application.send(:helpers, SimpleNavigation::Helpers)
      end

      def link_to(name, url, options = {})
        context.link_to(name, url, options)
      end

      def content_tag(type, content, options = {})
        context.content_tag(type, content.html_safe, options)
      end
    end
  end
end