Project

General

Profile

Feature #8833

[PATCH] IPAddr#pred

Added by iosctr (Brian Burns) over 4 years ago. Updated about 2 months ago.

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

Description

Add a IPAddr#pred method to return the predecessor of the ip address.

ipaddr_pred.patch (405 Bytes) ipaddr_pred.patch iosctr (Brian Burns), 08/29/2013 08:09 PM

History

#1 [ruby-core:56978] Updated by zzak (Zachary Scott) over 4 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)!

#2 [ruby-core:83478] Updated by knu (Akinori MUSHA) about 2 months 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.

Also available in: Atom PDF