Module: Karafka::Core::Configurable::InstanceMethods
- Defined in:
- lib/karafka/core/configurable.rb
Overview
Instance related methods
Instance Method Summary collapse
-
#config ⇒ Node
Config root node.
-
#configure(&block) ⇒ Object
Allows for a per instance configuration (if needed).
Instance Method Details
#config ⇒ Node
Returns 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)
41 42 43 |
# File 'lib/karafka/core/configurable.rb', line 41 def configure(&block) config.configure(&block) end |