This file is indexed.

/usr/lib/ruby/vendor_ruby/simple_navigation/renderer/text.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
19
20
21
module SimpleNavigation
  module Renderer
    # Renders the 'chain' of selected navigation items as simple text items,
    # joined with an optional separator (similar to breadcrumbs, but without
    # markup).
    class Text < SimpleNavigation::Renderer::Base
      def render(item_container)
        list(item_container).compact.join(options[:join_with] || ' ')
      end

      private

      def list(item_container)
        item_container.items.keep_if(&:selected?).map do |item|
          [item.name(apply_generator: false)] +
          (include_sub_navigation?(item) ? list(item.sub_navigation) : [])
        end
      end
    end
  end
end