It's worth noting that the URI stuff extends A string - not all strings, but
URI itself has a prototype and that you can implement as many methods as you
like. So we could have a URI.Extras.js or URI.Extended.js or whatever that
just implements new methods on URI.
URI.implement({
  ///fooo
});

This works just fine. The only catch is that the combine method, which
references all the parts in the reg-ex explicitly, isn't very extensible.
We'd need to revisit  how this method works to be more generic and
extensible.

On Tue, Mar 10, 2009 at 9:25 AM, Guillermo Rauch (via Nabble) <
[email protected]<ml-user%[email protected]>
> wrote:

> On Tue, Mar 10, 2009 at 3:19 PM, Sebastian Markbåge 
> <sebast...@...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2456644&i=0>
> > wrote:
>
> Even though there are many different forms of schemes, the API can
>> easily be applied to many of them. The ones with special purposes
>> could easily be extended with the necessary APIs. Both the Java
>> and .NET frameworks has common Uri classes to work with several
>> different schemes with a common API.
>
>
> Yes. I was saying the More URI didn't have a flexible API, but yours can
> accomodate to any scheme.
>
> I'll make some drafts on a version which extends the String native.
>
>
> Please take a look at the current URI in GitHub. I suggest you work on
> defining a URI.Schemes there, and replace the .implement({}) of the part
> getters with a general get() method.
>
> --
> Guillermo Rauch
> http://devthought.com
>
>
> ------------------------------
>  View message @ http://n2.nabble.com/Uri-class-tp2456119p2456644.html
> To start a new topic under MooTools Users, email
> [email protected]<ml-node%[email protected]>
> To unsubscribe from MooTools Users, click here< (link removed) >.
>
>
>


-----
The MooTools Tutorial:  http://www.mootorial.com www.mootorial.com 
Clientcide:  http://www.clientcide.com www.clientcide.com 
-- 
View this message in context: 
http://n2.nabble.com/Uri-class-tp2456119p2456699.html
Sent from the MooTools Users mailing list archive at Nabble.com.

Reply via email to