Actions
Feature #8833
closed[PATCH] IPAddr#pred
Feature #8833:
[PATCH] IPAddr#pred
Description
Add a IPAddr#pred method to return the predecessor of the ip address.
Files
Actions
Added by iosctr (Brian Burns) about 12 years ago. Updated about 8 years ago.
Description
Add a IPAddr#pred method to return the predecessor of the ip address.
Files
| ipaddr_pred.patch (405 Bytes) ipaddr_pred.patch | iosctr (Brian Burns), 08/29/2013 08:09 PM |
A good proposal should have a usecase with examples, also I would recommend tests (although I'm unsure if IPAddr has tests)...
IPAddr has succ almost only because it is required along with <=> to generate a Range object, so I'd like to know a use case for pred, if any.