Method: Roby::Application#compute_absolute_paths
- Defined in:
- lib/roby/app.rb
#compute_absolute_paths(relative_paths, root_paths, prioritize_root_paths: false) ⇒ Object
2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 |
# File 'lib/roby/app.rb', line 2591 def compute_absolute_paths(relative_paths, root_paths, prioritize_root_paths: false) if prioritize_root_paths root_paths.flat_map do |root| relative_paths.map do |rel_path| File.(File.join(*rel_path), root) end end else relative_paths.flat_map do |rel_path| root_paths.map do |root| File.(File.join(*rel_path), root) end end end end |