kapitan_morgan (Yaromir Bartosh)
- Login: kapitan_morgan
- Email: yaromirmorgan@gmail.com
- Registered on: 06/10/2020
- Last sign in: 06/10/2020
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
06/10/2020
-
12:34 PM Ruby Bug #16947: private method unexpected behavior
- ```ruby
class Person
def speak
puts "Hey, Tj!"
end
def whisper_louder
whisper
end
def whisper_self
self.whisper
end
private
def whisper
puts "His name's not really 'Tj'."
end
end
p = Person.new
p... -
12:18 PM Ruby Bug #16947 (Closed): private method unexpected behavior
- 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