Class: ServiceGenerator
- Inherits:
-
NestedGeneratorsBaseGenerator
- Object
- Rails::Generators::NamedBase
- NestedGeneratorsBaseGenerator
- ServiceGenerator
- Defined in:
- lib/generators/service/service_generator.rb
Constant Summary
Constants inherited from NestedGeneratorsBaseGenerator
NestedGeneratorsBaseGenerator::RETURN, NestedGeneratorsBaseGenerator::SCOPES
Instance Method Summary collapse
- #create_service_file ⇒ Object
-
#initialize(*args, &block) ⇒ ServiceGenerator
constructor
A new instance of ServiceGenerator.
Constructor Details
#initialize(*args, &block) ⇒ ServiceGenerator
Returns a new instance of ServiceGenerator.
8 9 10 11 |
# File 'lib/generators/service/service_generator.rb', line 8 def initialize(*args, &block) super @type = 'service' end |
Instance Method Details
#create_service_file ⇒ Object
13 14 15 16 17 |
# File 'lib/generators/service/service_generator.rb', line 13 def create_service_file create_base create_class_file create_class_spec_file end |