# File lib/merb-core/dispatch/request.rb, line 575 def subdomains(tld_length = 1) parts = host.split(Merb::Const::DOT) parts[0..-(tld_length+2)] end