/usr/lib/ruby/vendor_ruby/naught/basic_object.rb is in ruby-naught 1.0.0-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 | module Naught
if defined? ::BasicObject
class BasicObject < ::BasicObject
end
else
class BasicObject #:nodoc:
keep = %w[
! != == __id__ __send__ equal? instance_eval instance_exec
method_missing singleton_method_added singleton_method_removed
singleton_method_undefined
]
instance_methods.each do |method_name|
undef_method(method_name) unless keep.include?(method_name)
end
end
end
end
|