sporkmonger/addressable — pull request #55 by savonarola (2012-01-26 05:29:19+00:00)
Title: Make Addressable::URI.parse polymorphic

Addressable::URI.parse calls Addressable::URI.new explicitly, so one can't easily subclass from Addressable::URI, i.e. if one creates his own subclass of Addressable::URI

class MyAddressable < Addressable::URI
...

with additional functionality, MyAddressable.parse will still return an instance of Addressable::URI, making subclassing more difficult