Class: YAMLFileTemplate
- Inherits:
-
Object
- Object
- YAMLFileTemplate
- Defined in:
- lib/yaml_file_template.rb
Class Method Summary collapse
Class Method Details
.load_from_yaml(yaml) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/yaml_file_template.rb', line 6 def self.load_from_yaml(yaml) = YAML.load(yaml) file_template = FileTemplate.new({ :identifier => ["identifier"], :project_root => ["project_root"] }) ["included_dirs"].each do |dir| file_template.include_dir(dir) end return file_template end |