class Substation::Chain::DSL::Config

A configuration object used with a {DSL} instance

Attributes

dsl_module[R]

A module exposing methods to build processors defined in {registry}

@return [Module]

@api private

registry[R]

The registry of processor builders

@return [Hash<Symbol, Processor::Builder>]

@api private

Public Class Methods

build(registry) click to toggle source

Build a new config based on {registry} suitable for a {DSL} instance

@param [Hash<Symbol, Processor::Builder>] registry

the registry of processor builders used in an {Environment}

@return [Config]

@api private

# File lib/substation/chain/dsl/config.rb, line 18
def self.build(registry)
  new(registry, ModuleBuilder.call(registry))
end
new(registry, dsl_module) click to toggle source

Initialize a new instance

@param [Hash<Symbol, Processor::Builder>] registry

the registry of processor builder instances

@param [Module] dsl_module

the module built by {Builder}, suitable for +registry+

@return [undefined]

@api private

# File lib/substation/chain/dsl/config.rb, line 49
def initialize(registry, dsl_module)
  @registry, @dsl_module = registry, dsl_module
end