Feature #8833 ยป ipaddr_pred.patch
| lib/ipaddr.rb | ||
|---|---|---|
|
return self.clone.set(@addr + 1, @family)
|
||
|
end
|
||
|
# Returns the predecessor to the ipaddr.
|
||
|
def pred
|
||
|
return self.clone.set(@addr - 1, @family)
|
||
|
end
|
||
|
# Compares the ipaddr with another.
|
||
|
def <=>(other)
|
||
|
other = coerce_other(other)
|
||