55件ヒット
[1-55件を表示]
(0.132秒)
種類
- インスタンスメソッド (44)
- 特異メソッド (11)
ライブラリ
- ipaddr (55)
検索結果
先頭5件
-
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?...