This file is indexed.

/usr/lib/ruby/vendor_ruby/twitter-text/deprecation.rb is in ruby-twitter-text 1.10.0+gem-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
module Twitter
  module Deprecation
    def deprecate(method, new_method = nil)
      deprecated_method = :"deprecated_#{method}"
      message = "Deprecation: `#{method}` is deprecated."
      message << " Please use `#{new_method}` instead." if new_method

      alias_method(deprecated_method, method)
      define_method method do |*args, &block|
        warn message
        send(deprecated_method, *args, &block)
      end
    end
  end
end