Best way to require all files from a directory in ruby? July 1, 2022 by Tarik How about: Dir["/path/to/directory/*.rb"].each {|file| require file }