Gaetan Dubar Gaetan Dubar - 1 year ago 85
Ruby Question

Best way to require all files from a directory in ruby?

What's the best way to require all files from a directory in ruby ?

Answer Source

How about:

Dir["/path/to/directory/*.rb"].each {|file| require file }
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download