Class: ServiceGenerator

Inherits:
NestedGeneratorsBaseGenerator show all
Defined in:
lib/generators/service/service_generator.rb

Constant Summary

Constants inherited from NestedGeneratorsBaseGenerator

NestedGeneratorsBaseGenerator::RETURN, NestedGeneratorsBaseGenerator::SCOPES

Instance Method Summary collapse

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_fileObject



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