Class: Cardio::Generators::SetGenerator
- Inherits:
-
ModBase
- Object
- Rails::Generators::NamedBase
- ModBase
- Cardio::Generators::SetGenerator
- Defined in:
- lib/generators/set/set_generator.rb
Overview
generate set module files
Instance Method Summary collapse
Methods inherited from ModBase
Methods included from ClassMethods
#banner, #banner_command, #namespace, #source_root
Instance Method Details
#create_files ⇒ Object
16 17 18 19 |
# File 'lib/generators/set/set_generator.rb', line 16 def create_files template "set_template.erb", set_path unless ["spec-only"] template "set_spec_template.erb", set_path("spec") end |