Ruby stores the list of directories to search for included files in a special variable called $: : directory list « File Directory « Ruby






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


# You can see what $: contains by default, using irb:

$:.each { |d| puts d }

 

Related examples in the same category

1.If you want to add extra directories to this $: