Class: Meta::Utils::Kwargs::CompositeConsumer

Inherits:
Object
  • Object
show all
Defined in:
lib/meta/utils/kwargs/consumers.rb

Instance Method Summary collapse

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