/usr/lib/ruby/vendor_ruby/active_support/core_ext/module/method_names.rb is in ruby-activesupport-3.2 3.2.16-2.
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 | class Module
if instance_methods[0].is_a?(Symbol)
def instance_method_names(*args)
instance_methods(*args).map(&:to_s)
end
def method_names(*args)
methods(*args).map(&:to_s)
end
else
alias_method :instance_method_names, :instance_methods
alias_method :method_names, :methods
end
end
|