1件ヒット
[1-1件を表示]
(0.133秒)
ライブラリ
- resolv (1)
クラス
検索結果
-
Resolv
:: DNS :: Name # subdomain _ of?(other) -> bool (82027.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...