Class: Card::Generators::TemplateGenerator
- Inherits:
-
NamedBase
- Object
- Rails::Generators::NamedBase
- NamedBase
- Card::Generators::TemplateGenerator
- Defined in:
- lib/generators/card/template/template_generator.rb
Overview
A wagn generator that creates a haml template for a view. Run "wagn generate card:template" to get usage information.
Instance Method Summary collapse
Methods inherited from NamedBase
Methods included from ClassMethods
Instance Method Details
#create_files ⇒ Object
18 19 20 21 22 |
# File 'lib/generators/card/template/template_generator.rb', line 18 def create_files with_valid_arguments do template "haml_template.erb", set_path end end |