/usr/lib/ruby/vendor_ruby/binding_of_caller.rb is in ruby-binding-of-caller 0.7.2+debian1-3.
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 | dlext = RbConfig::CONFIG['DLEXT']
def mri_2?
defined?(RUBY_ENGINE) && RUBY_ENGINE == "ruby" &&
RUBY_VERSION =~ /^2/
end
if mri_2?
require 'binding_of_caller/mri2'
elsif defined?(RUBY_ENGINE) && RUBY_ENGINE == "ruby"
require "binding_of_caller.#{dlext}"
elsif defined?(Rubinius)
require 'binding_of_caller/rubinius'
end
|