Actions
Bug #15597
closedsyscall not returning true from private_method_defined?
Bug #15597:
syscall not returning true from private_method_defined?
Description
Actions
Added by AaronLasseigne (Aaron Lasseigne) over 7 years ago. Updated over 7 years ago.
Description
What is your OS?
Doesn't syscall method always raise a NotImplementedError?
I'm on MacOS 10.14.3 and yes it does raise a NotImplementedError. Even so, shouldn't it be shown as a private method?
@nobu (Nobuyoshi Nakada) : this commit changed it
https://github.com/ruby/ruby/commit/67d87b192b23a75092280b534570580df0f8f7a5
specially this line:
means for each not implemented method, the visibility is undef, and the checks does fail
another question would be if #private_methods should return such not implemented methods?
It's same as that respond_to?(:syscall, true) returns false.
@nobu (Nobuyoshi Nakada) should we change what the #methods returns? or is that to much work?