Loading several files
suggest changeYou can use any Ruby technique to build a list of files to load. This globs for files whose names start with test and loads them in alphabetical order.
Dir[File.join(__dir__, "**", "test*.rb")].sort.each do |source|
require_relative source
end
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents