class MultiDelegator

stackoverflow.com/questions/6407141/how-can-i-have-ruby-logger-log-output-to-stdout-as-well-as-file answered Jun 20 '11 at 11:03 jonas054

Public Class Methods

delegate(*methods) click to toggle source
# File lib/parallel_cucumber/helper/multi_delegator.rb, line 9
def self.delegate(*methods)
  methods.each do |m|
    define_method(m) do |*args|
      @targets.map { |t| t.send(m, *args) }
    end
  end
  self
end
new(*targets) click to toggle source
# File lib/parallel_cucumber/helper/multi_delegator.rb, line 5
def initialize(*targets)
  @targets = targets
end
Also aliased as: to
to(*targets)
Alias for: new