From: Joel VanderWerf Date: 2002-03-29T08:33:07+09:00 Subject: Re: Dir.glob => Enumerable.glob? Thomas S�ndergaard wrote: > > > What do you mean? Enumerable#grep using "wildcard pattern > > matching?" > > Exactly, that would be useful to me, and I'm wondering whether it would be > useful to others. > > I think that compared to Java, the ruby built-in classes and the standard > library are somewhat harder to extend. For instance IO is a bit big and > monolithic (imho, hence my RCR about it) - it is easy to use, but hard to > extend or partiallly reuse. I still prefer ruby, though ;-) > > > # However Dir itself isn't Enumerable. > > irb(main):009:0> Dir.included_modules > [Enumerable, Kernel] I think what he meant by "itself" was that glob is a class method of Dir, not an instance method.