Class: Loom::Config::FileManager
- Inherits:
-
Object
- Object
- Loom::Config::FileManager
- Defined in:
- lib/loom/config.rb
Instance Method Summary collapse
- #find(glob_patterns) ⇒ Object
-
#initialize(config) ⇒ FileManager
constructor
A new instance of FileManager.
- #loom_files ⇒ Object
Constructor Details
#initialize(config) ⇒ FileManager
Returns a new instance of FileManager.
79 80 81 82 83 |
# File 'lib/loom/config.rb', line 79 def initialize(config) @loom_search_paths = [config.loom_search_paths].flatten @loom_files = config.loom_files @loom_file_patterns = config.loom_file_patterns end |
Instance Method Details
#find(glob_patterns) ⇒ Object
85 86 87 |
# File 'lib/loom/config.rb', line 85 def find(glob_patterns) search_loom_paths(glob_patterns) end |
#loom_files ⇒ Object
89 90 91 |
# File 'lib/loom/config.rb', line 89 def loom_files [@loom_files + search_loom_paths(@loom_file_patterns)].flatten.uniq end |