Class: Meta::Utils::Kwargs::CompositeConsumer
- Inherits:
-
Object
- Object
- Meta::Utils::Kwargs::CompositeConsumer
- Defined in:
- lib/meta/utils/kwargs/consumers.rb
Instance Method Summary collapse
- #consume(final_args, args) ⇒ Object
-
#initialize(*consumers) ⇒ CompositeConsumer
constructor
A new instance of CompositeConsumer.
Constructor Details
#initialize(*consumers) ⇒ CompositeConsumer
Returns a new instance of CompositeConsumer.
51 52 53 |
# File 'lib/meta/utils/kwargs/consumers.rb', line 51 def initialize(*consumers) @consumers = consumers end |
Instance Method Details
#consume(final_args, args) ⇒ Object
55 56 57 58 59 |
# File 'lib/meta/utils/kwargs/consumers.rb', line 55 def consume(final_args, args) @consumers.each do |consumer| consumer.consume(final_args, args) end end |