How to get the URL for the object tab in Salesforce?

Sample Code:

        Schema.DescribeSObjectResult r = Directory_Edition__c.sObjectType.getDescribe();
        String URLforObj = URL.getSalesforceBaseUrl().toExternalForm() + r.getKeyPrefix() + '/o';

Cheers!!!