Class: Substation::Chain::DSL::ModuleBuilder
- Inherits:
-
Object
- Object
- Substation::Chain::DSL::ModuleBuilder
- Includes:
- Adamantium::Flat
- Defined in:
- lib/substation/chain/dsl/module_builder.rb
Overview
Builds a Module suitable for a Substation::Chain::DSL instance
Instance Attribute Summary collapse
-
#dsl_module ⇒ Module
readonly
private
A module suitable for inclusion in a Substation::Chain::DSL instance.
Class Method Summary collapse
-
.call(registry) ⇒ Module
private
Builds a new Module targeted for a Substation::Chain::DSL instance.
Instance Method Summary collapse
-
#initialize(registry) ⇒ undefined
constructor
private
Initialize a new instance.
Constructor Details
#initialize(registry) ⇒ undefined
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initialize a new instance
39 40 41 42 43 |
# File 'lib/substation/chain/dsl/module_builder.rb', line 39 def initialize(registry) @registry = registry @dsl_module = Module.new initialize_dsl_module end |
Instance Attribute Details
#dsl_module ⇒ Module (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
A module suitable for inclusion in a Substation::Chain::DSL instance
29 30 31 |
# File 'lib/substation/chain/dsl/module_builder.rb', line 29 def dsl_module @dsl_module end |
Class Method Details
.call(registry) ⇒ Module
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Builds a new Module targeted for a Substation::Chain::DSL instance
18 19 20 |
# File 'lib/substation/chain/dsl/module_builder.rb', line 18 def self.call(registry) new(registry).dsl_module end |