Class: ForgeCLI::ControllerModuleIncluder

Inherits:
Object
  • Object
show all
Defined in:
lib/forge-cli/controller_module_includer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app, module_name) ⇒ ControllerModuleIncluder

Returns a new instance of ControllerModuleIncluder.



4
5
6
7
# File 'lib/forge-cli/controller_module_includer.rb', line 4

def initialize(app, module_name)
  @app = app
  @module_name = module_name
end

Instance Attribute Details

#module_nameObject (readonly)

Returns the value of attribute module_name.



2
3
4
# File 'lib/forge-cli/controller_module_includer.rb', line 2

def module_name
  @module_name
end

Instance Method Details

#run!Object



9
10
11
12
# File 'lib/forge-cli/controller_module_includer.rb', line 9

def run!
  add_initializer_content
  add_controller_content
end