Module: XcodeBuild::OutputTranslator::TranslationHelpers

Included in:
XcodeBuild::OutputTranslator, ConcreteTranslation
Defined in:
lib/xcode_build/output_translator.rb

Instance Method Summary collapse

Instance Method Details

#notify_delegate(message, options = {}) ⇒ Object



59
60
61
62
63
64
65
66
67
68
# File 'lib/xcode_build/output_translator.rb', line 59

def notify_delegate(message, options = {})
  options[:args] ||= []
  if @delegate.respond_to?(message)
    @delegate.send(message, *options[:args])
  else
    if options[:required]
      raise MissingDelegateMethodError.new(message)
    end
  end
end