Method: Fetchers::Local#initialize
- Defined in:
- lib/fetchers/local.rb
#initialize(target) ⇒ Local
Returns a new instance of Local.
30 31 32 33 34 35 36 37 |
# File 'lib/fetchers/local.rb', line 30 def initialize(target) @target = target if File.file?(target) @files = [target] else @files = Dir[File.join(target, '**', '*')] end end |