instance method IPAddr#<=>
self <=> other -> nil | Integer
-
self と other を比較します。
- [PARAM] other:
- 比較対象の IPAddr オブジェクト。
- [RETURN]
- self と other のアドレスファミリが一致しない場合は nil を返します。 アドレスファミリが一致する場合は、両方の数値表現を Integer#<=> で比較した結果を返します。
[SEE_ALSO] Integer#<=>
class IPAddr