Class: Substation::Chain::DSL::Builder
- Inherits:
-
Object
- Object
- Substation::Chain::DSL::Builder
- Includes:
- Adamantium::Flat
- Defined in:
- lib/substation/chain/dsl.rb
Overview
The class that builds a DSL class suitable for an Environment
Instance Attribute Summary collapse
-
#dsl ⇒ Class<DSL>
readonly
private
The built DSL subclass.
Class Method Summary collapse
-
.call(registry) ⇒ Class<DSL>
private
Build a new Substation::Chain::DSL subclass targeted for an Environment.
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
57 58 59 60 |
# File 'lib/substation/chain/dsl.rb', line 57 def initialize(registry) @registry = registry @dsl = compile_dsl end |
Instance Attribute Details
#dsl ⇒ Class<DSL> (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.
The built DSL subclass
47 48 49 |
# File 'lib/substation/chain/dsl.rb', line 47 def dsl @dsl end |
Class Method Details
.call(registry) ⇒ Class<DSL>
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.
Build a new Substation::Chain::DSL subclass targeted for an Environment
38 39 40 |
# File 'lib/substation/chain/dsl.rb', line 38 def self.call(registry) new(registry).dsl end |