PHP 8.2.31
Preview: subdomain_of%3f-i.yaml Size: 919 B
//proc/thread-self/root/opt/alt/ruby18/share/ri/1.8/system/Resolv/DNS/Name/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(&quot;y.z&quot;)\n  p Resolv::DNS::Name.create(&quot;w.x.y.z&quot;).subdomain_of?(domain) #=&gt; true\n  p Resolv::DNS::Name.create(&quot;x.y.z&quot;).subdomain_of?(domain) #=&gt; true\n  p Resolv::DNS::Name.create(&quot;y.z&quot;).subdomain_of?(domain) #=&gt; false\n  p Resolv::DNS::Name.create(&quot;z&quot;).subdomain_of?(domain) #=&gt; false\n  p Resolv::DNS::Name.create(&quot;x.y.z.&quot;).subdomain_of?(domain) #=&gt; false\n  p Resolv::DNS::Name.create(&quot;w.z&quot;).subdomain_of?(domain) #=&gt; false\n"
full_name: Resolv::DNS::Name#subdomain_of?
is_singleton: false
name: subdomain_of?
params: (other)
visibility: public

Directory Contents

Dirs: 0 × Files: 5

Name Size Perms Modified Actions
250 B lrw-r--r-- 2023-07-26 13:47:14
Edit Download
460 B lrw-r--r-- 2023-07-26 13:47:14
Edit Download
503 B lrw-r--r-- 2023-07-26 13:47:14
Edit Download
919 B lrw-r--r-- 2023-07-26 13:47:14
Edit Download
611 B lrw-r--r-- 2023-07-26 13:47:14
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).