Ruby/File Directory/directory list
Материал из Wiki.crossplatform.ru
(Различия между версиями)
ViGOur (Обсуждение | вклад) м (1 версия: Импорт выборки материалов по Ruby) |
Текущая версия на 17:57, 13 сентября 2010
If you want to add extra directories to this $:
$:.push "/your/directory/here" require "yourfile"
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 }