6件ヒット
[1-6件を表示]
(0.133秒)
別のキーワード
検索結果
先頭5件
-
IPAddr
# <=>(other) -> Integer | nil (79.0) -
self と other を比較します。
...self と other を比較します。
@param other 比較対象の IPAddr オブジェクト。
@return self と other のアドレスファミリが一致しない場合は nil を返します。
アドレスファミリが一致する場合は、両方の数値表現を Integer#<=>... -
IPAddr
# eql?(other) -> bool (43.0) -
自身が other と等しい場合は真を返します。 そうでない場合は偽を返します。
自身が other と等しい場合は真を返します。
そうでない場合は偽を返します。
@see Object#eql? -
IPAddr
# family -> Integer (43.0) -
このオブジェクトのアドレスファミリを返します。
このオブジェクトのアドレスファミリを返します。
@see Socket -
IPAddr
# hash -> Integer (43.0) -
ハッシュ値を返します。
ハッシュ値を返します。
@see Object#hash -
IPAddr
# to _ s -> String (43.0) -
文字列に変換します。
...文字列に変換します。
require 'ipaddr'
addr6 = IPAddr.new('::1')
addr6.to_s #=> "::1"
addr6.to_string #=> "0000:0000:0000:0000:0000:0000:0000:0001"
@see IPAddr#to_string... -
IPAddr
# to _ string -> String (43.0) -
標準的な文字列表現に変換します。
...標準的な文字列表現に変換します。
require 'ipaddr'
addr6 = IPAddr.new('::1')
addr6.to_s #=> "::1"
addr6.to_string #=> "0000:0000:0000:0000:0000:0000:0000:0001"
@see IPAddr#to_s...