Actions
Feature #8833
closed[PATCH] IPAddr#pred
Description
Add a IPAddr#pred method to return the predecessor of the ip address.
Files
Actions
Like0
Like0Like0
Added by iosctr (Brian Burns) over 11 years ago. Updated over 7 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.