If you want to add extra directories to this $: : directory list « File Directory « Ruby






If you want to add extra directories to this $:


$:.push '/your/directory/here'
require 'yourfile'

 

Related examples in the same category

1.Ruby stores the list of directories to search for included files in a special variable called $: