Module: Karafka::Core::Configurable::InstanceMethods

Defined in:
lib/karafka/core/configurable.rb

Overview

Instance related methods

Instance Method Summary collapse

Instance Method Details

#configNode

Returns config root node.

Returns:

  • (Node)

    config root node



35
36
37
# File 'lib/karafka/core/configurable.rb', line 35

def config
  @config ||= self.class.config.deep_dup
end

#configure(&block) ⇒ Object

Allows for a per instance configuration (if needed)

Parameters:

  • block (Proc)

    block for configuration



41
42
43
# File 'lib/karafka/core/configurable.rb', line 41

def configure(&block)
  config.configure(&block)
end