You can use any ruby technique to dynamically create a list of files to load. Illustration of globbing for files starting with test
, loaded in alphabetical order.
Dir[ "#{ __dir__ }**/test*.rb" ) ].sort.each do |source|
require_relative source
end