Project

General

Profile

Actions

Feature #8833

closed

[PATCH] IPAddr#pred

Added by iosctr (Brian Burns) over 11 years ago. Updated about 7 years ago.

Status:
Feedback
Target version:
-
[ruby-core:56864]

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

Updated by zzak (zzak _) over 11 years ago

  • Category set to lib
  • Status changed from Open to Assigned
  • Assignee set to knu (Akinori MUSHA)

A good proposal should have a usecase with examples, also I would recommend tests (although I'm unsure if IPAddr has tests)...

@knu (Akinori MUSHA)!

Updated by knu (Akinori MUSHA) about 7 years ago

  • Status changed from Assigned to Feedback

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.

Actions

Also available in: Atom PDF

Like0
Like0Like0