class Magellan::Gcs::Proxy::ProgressNotification::CompositeNotifier

Attributes

notifiers[R]

Public Class Methods

new(notifiers) click to toggle source
# File lib/magellan/gcs/proxy/progress_notification.rb, line 56
def initialize(notifiers)
  @notifiers = notifiers
end

Public Instance Methods

notify(*args, &block) click to toggle source
# File lib/magellan/gcs/proxy/progress_notification.rb, line 60
def notify(*args, &block)
  notifiers.each do |notifier|
    begin
      notifier.notify(*args, &block)
    rescue => e
      $stderr.puts("[#{e.class}] #{e.message}")
    end
  end
end