[Nitro] Facets #use
george.moschovitis at gmail.com
Sat Feb 11 07:20:26 EST 2006
I like the require 'facets/xxx' method...
On 2/10/06, TRANS <transfire at gmail.com> wrote:
> On 2/10/06, Bryan Soto <bryan.a.soto at gmail.com> wrote:
> > How about
> > Facets.for Time, :stamp
> > I like the way that reads.
> Hmm....not bad. Actually, you can do:
> require 'facets'
> Facets.require 'time/stamp'
> That was the go between method that #use called, and I left it in. So
> I can easily add Facets.for in the same manner.
> FYI, for those unsure why this is even considered, there are two
> things that the regular require method can't do. It can't seach
> superclasses for a core method if not found in the given class and it
> can't substitute for punctuational method names.
> Nitro-general mailing list
> Nitro-general at rubyforge.org
More information about the Nitro-general