56件ヒット
[1-56件を表示]
(0.125秒)
検索結果
先頭5件
-
IPAddr
# to _ i -> Integer (6204.0) -
整数に変換します。
...整数に変換します。
例:
require "ipaddr"
p IPAddr.new("0.0.1.0").to_i # => 256... -
IPAddr
# <=>(other) -> Integer | nil (216.0) -
self と other を比較します。
...self と other を比較します。
@param other 比較対象の IPAddr オブジェクト。
@return self と other のアドレスファミリが一致しない場合は nil を返します。
アドレスファミリが一致する場合は、両方の数値表現を Integer#<=>......で比較した結果を返します。
@see Integer#<=>... -
IPAddr
# family -> Integer (204.0) -
このオブジェクトのアドレスファミリを返します。
...このオブジェクトのアドレスファミリを返します。
@see Socket... -
IPAddr
# hash -> Integer (204.0) -
ハッシュ値を返します。
...ハッシュ値を返します。
@see Object#hash... -
IPAddr
# prefix -> Integer (204.0) -
プリフィックス長をビット数で返します。
プリフィックス長をビット数で返します。