It's been a long time, shame. March 26th, 2008
Here's a special gift.
def self.return_url_for(subdomain)
'http://' + ({'att-yahoo' => 'sbc.yahoo.com'}[subdomain] || 'sbc.yahoo.com')
end
4 Responses to “It's been a long time, shame.”
Sorry, comments are closed for this article.
March 26th, 2008 at 09:16 AM Wow... so, unless I'm completely mistaken, thats just an overlycomplicated way of always returning 'http://sbc.yahoo.com', right?
March 26th, 2008 at 07:54 PM YES! Isn't it GLORIOUS!?!
March 26th, 2008 at 07:57 PM good times had by all.
March 26th, 2008 at 08:02 PM It only works for http too, other protocols and subdomains are not allowed!