Actions
Bug #15597
closedsyscall not returning true from private_method_defined?
Description
syscode
is a private method on Object
but when checked with private_method_defined?
it returns false
.
Ruby 2.6.1
irb(main):001:0> Object.new.private_methods.sort.select { |pm| !Object.private_method_defined?(pm) }
=> [:syscall]
Ruby 2.5.3
irb(main):001:0> Object.new.private_methods.sort.select { |pm| !Object.private_method_defined?(pm) }
=> []
Actions
Like0
Like0Like0Like0Like0Like0Like0