관리-도구
편집 파일: subdomain_of%3f-i.yaml
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Returns true if <tt>other</tt> is a subdomain. - !ruby/struct:SM::Flow::P body: "Example:" - !ruby/struct:SM::Flow::VERB body: " domain = Resolv::DNS::Name.create("y.z")\n p Resolv::DNS::Name.create("w.x.y.z").subdomain_of?(domain) #=> true\n p Resolv::DNS::Name.create("x.y.z").subdomain_of?(domain) #=> true\n p Resolv::DNS::Name.create("y.z").subdomain_of?(domain) #=> false\n p Resolv::DNS::Name.create("z").subdomain_of?(domain) #=> false\n p Resolv::DNS::Name.create("x.y.z.").subdomain_of?(domain) #=> false\n p Resolv::DNS::Name.create("w.z").subdomain_of?(domain) #=> false\n" full_name: Resolv::DNS::Name#subdomain_of? is_singleton: false name: subdomain_of? params: (other) visibility: public