2件ヒット
[1-2件を表示]
(0.188秒)
ライブラリ
- resolv (1)
クラス
-
Resolv
:: DNS :: Name (1) -
WEBrick
:: Cookie (1)
検索結果
-
WEBrick
:: Cookie # domain=(value) (54901.0) -
ドメイン名を文字列で表すアクセサです。
ドメイン名を文字列で表すアクセサです。
@param value ドメイン名を表す文字列を指定します。 -
Resolv
:: DNS :: Name # subdomain _ of?(other) -> bool (27619.0) -
other が self のサブドメインであるかどうかを返します。
other が self のサブドメインであるかどうかを返します。
//emlist[][ruby]{
require "resolv"
domain = Resolv::DNS::Name.create("y.z")
p Resolv::DNS::Name.create("w.x.y.z").subdomain_of?(domain) #=> true
p Resolv::DNS::Name.create("x.y.z").subdomain_of?(domain) #=> true
p Resolv::DNS::Name.create("y.z").subdomain_of?(domai...