Class: Specimen::Generator::FileByTemplate
- Inherits:
-
Commands::BaseGroupCommand
- Object
- Thor::Group
- Commands::BaseGroupCommand
- Specimen::Generator::FileByTemplate
- Defined in:
- lib/specimen/generator/file_by_template.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Commands::BaseGroupCommand
Class Method Details
.source_root ⇒ Object
10 11 12 |
# File 'lib/specimen/generator/file_by_template.rb', line 10 def self.source_root "#{File.dirname(__FILE__)}/templates" end |
Instance Method Details
#create ⇒ Object
14 15 16 |
# File 'lib/specimen/generator/file_by_template.rb', line 14 def create template(template_file, destination, data) end |