Project

General

Profile

Bug #16947

private method unexpected behavior

Added by kapitan_morgan (Yaromir Bartosh) 3 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux]
[ruby-core:98707]

Description

private method called explicitly through self should return an error, but in version 2.7.1 an error does not occur and the method is executed


Files

private_method.rb (331 Bytes) private_method.rb example private method kapitan_morgan (Yaromir Bartosh), 06/10/2020 12:17 PM

Related issues

Related to Ruby master - Feature #11297: Allow private method of self to be calledClosedActions
Related to Ruby master - Feature #16123: Allow calling a private method with `self.`ClosedActions

Also available in: Atom PDF