Loading several files
suggest changeYou 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
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents