Class: Fulmar::Service::HelperService
- Inherits:
-
Object
- Object
- Fulmar::Service::HelperService
- Defined in:
- lib/fulmar/service/helper_service.rb
Overview
Provides internal helper methods
Class Method Summary collapse
-
.reverse_file_lookup(path, filename) ⇒ Object
Reverse file lookup in path.
Class Method Details
.reverse_file_lookup(path, filename) ⇒ Object
Reverse file lookup in path
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fulmar/service/helper_service.rb', line 10 def reverse_file_lookup(path, filename) paths = get_parent_directory_paths(path) paths.each do |directory| file_path = directory + '/' + filename return file_path if File.exist? file_path end false end |