Loading several files

suggest change

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

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents