subdomain(tld_length = @@tld_length)
Instance Public methods
Returns all the subdomains as a string, so "dev.www"
would be returned for âdev.www.rubyonrails.orgâ. You can specify a
different tld_length
, such as 2 to catch
"www"
instead of
"www.rubyonrails"
in âwww.rubyonrails.co.ukâ.
Please login to continue.