Class: Cardio::Generators::SetGenerator

Inherits:
ModBase
  • Object
show all
Defined in:
card/lib/generators/set/set_generator.rb

Overview

generate set module files

Instance Method Summary collapse

Methods inherited from ModBase

#mod_path

Methods included from ClassMethods

#banner, #banner_command, #namespace, #source_root

Instance Method Details

#create_filesObject



17
18
19
20
# File 'card/lib/generators/set/set_generator.rb', line 17

def create_files
  template "set_template.erb", set_path unless options["spec-only"]
  template "set_spec_template.erb", set_path("spec")
end