Method: Stockboy::Providers::FTP#matching_file
- Defined in:
- lib/stockboy/providers/ftp.rb
#matching_file ⇒ Object
141 142 143 144 145 146 147 |
# File 'lib/stockboy/providers/ftp.rb', line 141 def matching_file return @matching_file if @matching_file adapter do |ftp| file_listing = ftp.list_files @matching_file = pick_from file_listing.select(&file_name_matcher) end end |