Class: Karafka::Routing::Features::Base::Expander
- Inherits:
-
Module
- Object
- Module
- Karafka::Routing::Features::Base::Expander
- Defined in:
- lib/karafka/routing/features/base/expander.rb
Overview
Routing builder expander that injects feature related drawing operations into it
Instance Method Summary collapse
-
#initialize(scope) ⇒ Expander
constructor
Builder expander instance.
-
#prepended(mod) ⇒ Object
Builds anonymous module that alters how ‘#draw` behaves allowing the feature contracts to run.
Constructor Details
#initialize(scope) ⇒ Expander
Returns builder expander instance.
11 12 13 14 |
# File 'lib/karafka/routing/features/base/expander.rb', line 11 def initialize(scope) super() @scope = scope end |
Instance Method Details
#prepended(mod) ⇒ Object
Builds anonymous module that alters how ‘#draw` behaves allowing the feature contracts to run.
19 20 21 22 23 |
# File 'lib/karafka/routing/features/base/expander.rb', line 19 def prepended(mod) super mod.prepend(prepended_module) end |