module Synapse::Configuration::Dependent::ClassMethods

Public Instance Methods

depends_on(service, *args) click to toggle source

@param [Symbol] service @param [Object…] args @return [undefined]

# File lib/synapse/configuration/dependent.rb, line 20
def depends_on(service, *args)
  options = args.extract_options!

  attribute = options[:as] || service
  attr_accessor attribute

  self.dependencies[service] = attribute
end