Class: Provider::File::NonRecursive
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Provider::File::Base
Instance Method Details
#each ⇒ Object
40 41 42 43 44 45 46 47 48 49 |
# File 'lib/providers.rb', line 40 def each @folders.each do |folder| dir = Dir.new(folder) dir.collect.send(@iterator) do |file| unless file =~ /^\.+$/ yield folder, file end end end end |