Class: ActiveGenie::BaseModule
- Inherits:
-
Object
- Object
- ActiveGenie::BaseModule
show all
- Includes:
- CallWrapper
- Defined in:
- lib/active_genie/utils/base_module.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(config: {}) ⇒ BaseModule
Returns a new instance of BaseModule.
13
14
15
|
# File 'lib/active_genie/utils/base_module.rb', line 13
def initialize(config: {})
@initial_config = config || {}
end
|
Class Method Details
.call ⇒ Object
9
10
11
|
# File 'lib/active_genie/utils/base_module.rb', line 9
def self.call(...)
new(...).call
end
|
Instance Method Details
#call ⇒ Object
17
18
19
|
# File 'lib/active_genie/utils/base_module.rb', line 17
def call
raise NotImplementedError, 'Subclasses must implement the `call` method'
end
|
#module_config ⇒ Object
30
31
32
|
# File 'lib/active_genie/utils/base_module.rb', line 30
def module_config
{}
end
|