Class: Card::Generators::TemplateGenerator

Inherits:
NamedBase
  • Object
show all
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

#mod_path

Methods included from ClassMethods

#banner, #source_root

Instance Method Details

#create_filesObject



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