Class: Provider::File::Glob

Inherits:
Base show all
Defined in:
lib/providers.rb

Instance Attribute Summary

Attributes inherited from Base

#folders

Instance Method Summary collapse

Methods inherited from Base

#initialize, #reverse

Constructor Details

This class inherits a constructor from Provider::File::Base

Instance Method Details

#eachObject



56
57
58
59
60
61
62
63
# File 'lib/providers.rb', line 56

def each
  @folders.each do |pattern|
    Dir.glob(pattern).send(@iterator) do |fn|
      path, file = ::File.split fn
      yield path, file unless file =~ /^\.+$/
    end
  end
end