るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.096秒)

別のキーワード

  1. ipaddr ===
  2. ipaddr >>
  3. ipaddr <<
  4. ipaddr ==

ライブラリ

クラス

検索結果

IPAddr#<=>(other) -> Integer | nil (105322.0)

self と other を比較します。

self と other を比較します。

@param other 比較対象の IPAddr オブジェクト。

@return self と other のアドレスファミリが一致しない場合は nil を返します。
アドレスファミリが一致する場合は、両方の数値表現を Integer#<=>
で比較した結果を返します。

@see Integer#<=>