Class: Loom::Config::FileManager

Inherits:
Object
  • Object
show all
Defined in:
lib/loom/config.rb

Instance Method Summary collapse

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_filesObject



89
90
91
# File 'lib/loom/config.rb', line 89

def loom_files
  [@loom_files + search_loom_paths(@loom_file_patterns)].flatten.uniq
end