Project

General

Profile

Actions

Bug #15597

closed

syscall not returning true from private_method_defined?

Added by AaronLasseigne (Aaron Lasseigne) almost 6 years ago. Updated almost 6 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
[ruby-core:91505]

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) }
=> []

Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #14944: Support optional inherit argument for Module#method_defined?ClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0