Class: Card::Generators::SetGenerator
- Inherits:
-
NamedBase
- Object
- Rails::Generators::NamedBase
- NamedBase
- Card::Generators::SetGenerator
- Defined in:
- lib/generators/card/set/set_generator.rb
Instance Method Summary collapse
Methods inherited from NamedBase
Methods included from ClassMethods
Instance Method Details
#create_files ⇒ Object
20 21 22 23 |
# File 'lib/generators/card/set/set_generator.rb', line 20 def create_files template "set_template.erb", set_path unless ["spec-only"] template "set_spec_template.erb", set_path("spec") end |