shemerey (Anton Shemerey)
- Login: shemerey
- Email: shemerey@gmail.com
- Registered on: 07/21/2012
- Last sign in: 08/24/2016
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
07/21/2012
-
01:54 AM Ruby Bug #6760: unexpected behavior in Enumerable method all? if collection is empty
- thx for your explanation now it's clear.
I think this bug can be closed
bunch of thanks, i don't thought about this problem from "Vacuous truth" side %-) -
01:11 AM Ruby Bug #6760 (Rejected): unexpected behavior in Enumerable method all? if collection is empty
- if collection is empty all? always return true even if we call it with undefined method
for example
-> [].all?(&:undefined_mathod) #=> true
-> {}.all?(&:undefined_mathod) #=> true
etc.
my fix for it un ruby:
module ...