Feature Request #19
Add Object#in?
| Status: | New | Start: | 02/22/2010 | |
| Priority: | Normal | Due date: | 03/31/2011 | |
| Assigned to: | Daniel Berger | % Done: | 0% |
|
| Category: | Core Class | Spent time: | - | |
| Target version: | 1.0 | Estimated time: | 4.00 hours | |
Description
Add the Object#in? method. Basically, the inverse of obj.include?(x).
The rules are simple: The argument to Object#in? must be an object that responds to .include?. That method is then called on self, and returns the resulting value.