Class: ForgeCLI::ControllerModuleIncluder
- Inherits:
-
Object
- Object
- ForgeCLI::ControllerModuleIncluder
- Defined in:
- lib/forge-cli/controller_module_includer.rb
Instance Attribute Summary collapse
-
#module_name ⇒ Object
readonly
Returns the value of attribute module_name.
Instance Method Summary collapse
-
#initialize(app, module_name) ⇒ ControllerModuleIncluder
constructor
A new instance of ControllerModuleIncluder.
- #run! ⇒ Object
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_name ⇒ Object (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 |