Class: Toys::StandardMiddleware::ApplyConfig

Inherits:
Object
  • Object
show all
Defined in:
core-docs/toys/standard_middleware/apply_config.rb

Overview

Defined in the toys-core gem

A middleware that applies the given block to all tool configurations.

Instance Method Summary collapse

Constructor Details

#initialize(parent_source: nil, source_name: nil, &block) ⇒ ApplyConfig

Create an ApplyConfig middleware

Parameters:

  • parent_source (Toys::SourceInfo) (defaults to: nil)

    The SourceInfo corresponding to the source where this block is provided, or nil (the default) if the block does not come from a Toys file.

  • source_name (String) (defaults to: nil)

    A user-visible name for the source, or nil to use the default.

  • block (Proc)

    The configuration to apply.



19
20
21
# File 'core-docs/toys/standard_middleware/apply_config.rb', line 19

def initialize(parent_source: nil, source_name: nil, &block)
  # Source available in the toys-core gem
end