From: ruby newbie Date: 2007-04-24T08:29:18+09:00 Subject: glob on a dir object 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") => # 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 => # irb(main):003:0> arr = dh.glob("a?") NoMethodError: undefined method `glob' for # from (irb):3 Thanks! VS