Module: GeneratorBase::Template

Included in:
Create
Defined in:
lib/centuria/generators/gene_base.rb

Instance Method Summary collapse

Instance Method Details

#make_dir(dir) ⇒ Object



11
12
13
# File 'lib/centuria/generators/gene_base.rb', line 11

def make_dir(dir)
  directory("templates/#{dir}", "#{file_name}/#{dir}")
end

#templater(file) ⇒ Object



7
8
9
# File 'lib/centuria/generators/gene_base.rb', line 7

def templater(file)
  template("templates/#{file}.tt", "#{file_name}/#{file}")
end