Class: Proctor::TemplateConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/proctor/template_config.rb

Class Method Summary collapse

Class Method Details

.load(global_options = {}) ⇒ Object



4
5
6
7
8
9
# File 'lib/proctor/template_config.rb', line 4

def self.load(global_options = {})
  template_files = self.files(global_options)
  template_files.reduce({}) do |a, v|
    a.merge({File.basename(v) => v})
  end
end