come
4/24/2007 7:48:00 AM
Hi,
Indeed, "glob" is a classe methods of "Dir" but since Dir is a child
of Enumerable module, you have access to all instance methods of
Enumerable module like, for instance : grep.
So :
dh.grep(/^a?/)
....should play the same role as the glob class method
On 24 avr, 05:58, ruby Newbie <vsrin...@gmail.com> wrote:
> ahh, That makes sense now. I get :: and # syntax that I saw in
> Pragmatic programmer's guide .Thank you Harold & Jesse.
>