# File lib/dbi.rb, line 178
178:         def collect_drivers
179:             drivers = { }
180:             # FIXME rewrite this to leverage require and be more intelligent
181:             path = File.join(File.dirname(__FILE__), "dbd", "*.rb")
182:             Dir[path].each do |f|
183:                 if File.file?(f)
184:                     driver = File.basename(f, ".rb")
185:                     drivers[driver] = f
186:                 end
187:             end
188: 
189:             return drivers
190:         end