るりまサーチ

最速Rubyリファレンスマニュアル検索!
55件ヒット [1-55件を表示] (0.132秒)
トップページ > クエリ:i[x] > クエリ:h[x] > クラス:IPAddr[x]

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. matrix i
  5. csv to_i

ライブラリ

キーワード

検索結果

IPAddr#hash -> Integer (9201.0)

ハッシュ値を返します。

...ハッシュ値を返します。

@see Object#hash...

IPAddr#hton -> String (9201.0)

ネットワークオーダーのバイト列に変換します。

ネットワークオーダーのバイト列に変換します。

IPAddr.new_ntoh(addr) -> IPAddr (9201.0)

ネットワークバイトオーダーのバイト列から IPAddr オブジェクトを生成します。

...ネットワークバイトオーダーのバイト列から IPAddr オブジェクトを生成します。

@param addr ネットワークバイトオーダーのバイト列。

例:

require 'ipaddr'
p IPAddr.new_ntoh("\300\250\001\001") # => <IPAddr: IPv4:192.168.1.1/255.255.255.255>...

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

self と other を比較します。

...self と other を比較します。

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

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

@see Integer#<=>...

IPAddr#eql?(other) -> bool (3101.0)

自身が other と等しい場合は真を返します。 そうでない場合は偽を返します。

...自身が other と等しい場合は真を返します。
そうでない場合は偽を返します。

@see Object#eql?...

絞り込み条件を変える