Trans
4/19/2005 3:41:00 PM
James Britt wrote:
> If one is already calling
> require 'facets'
>
> could not Facets munge 'require' so that it does a CGI.unescape
behind
> the scenes, so one could just call
>
> require '!!'
Actaully two things here:
1) Since RubyGems already munges #require, I'm not so keen on adding a
second munge layer. Do you think Matz would find CGI encoding suitable
for a general RCR on require?
2) But more importantly, one does not require 'facets' b/c Facets is
an _atomic library_, which means that everything is broken down into
fine grain peices. So instead one would do something like
require 'facet/string/singularize'
Of course, there are premade groupings one can use too, but there is no
one particular file that is always required.
> > BTW, why do the ri yaml files all end in '-i' ?
>
> There are class files and instance files.
Yep, that makes sense.
Thanks,
T.