Method: NBP::XMLFilesList#fetch_file_names
- Defined in:
- lib/nbp/xml_files_list.rb
#fetch_file_names ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/nbp/xml_files_list.rb', line 18 def fetch_file_names dir_file = open(Commons::CORE_WEB_PATH + dir_name, 'r') @matched_base_file_names = dir_file.each_line.with_object([]) do |line, arr| trim_line = line.strip arr << trim_line if trim_line[-6..-1] == formatted_date end end |