Class: Provider::File::Glob
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Provider::File::Base
Instance Method Details
#each ⇒ Object
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 |