Hi

I am a Ruby newbie and having fun learning it so far...Can anyone help
me as to why this does not work?

Why does not glob method work on a Directory object created or am I
not using the OO constrcuts the right way?

irb(main):001:0> dh = Dir.new("/tmp/zz")
=> #<Dir:0x64018>
irb(main):002:0>  dh.each { |f| puts "Has file #{f}" }
Has file .
Has file ..
Has file a
Has file aa
Has file b
Has file c
Has file d
=> #<Dir:0x64018>

irb(main):003:0> arr = dh.glob("a?")
NoMethodError: undefined method `glob' for #<Dir:0x64018>
        from (irb):3

Thanks!
VS