Ruby/File Directory/Dir rewind
Материал из Wiki.crossplatform.ru
(Различия между версиями)
ViGOur (Обсуждение | вклад) м (1 версия: Импорт выборки материалов по Ruby) |
Текущая версия на 17:57, 13 сентября 2010
Now the Dir object is useless until we call Dir#rewind.
d = Dir.open("mydir") d.reject { |f| f[0] == "." } d.entries.size # => 0 d.rewind d.entries.size # => 6 d.close