Module: Celluloid::Supervision::Container::Behavior::ClassMethods

Defined in:
lib/celluloid/supervision/container/behavior.rb

Instance Method Summary collapse

Instance Method Details

#behavior_injectionsObject



75
76
77
# File 'lib/celluloid/supervision/container/behavior.rb', line 75

def behavior_injections
  Behavior.injections[self] ||= {}
end

#identifier!(identifier, *aliases) ⇒ Object



66
67
68
69
70
71
72
73
# File 'lib/celluloid/supervision/container/behavior.rb', line 66

def identifier!(identifier, *aliases)
  Behavior[identifier] = self
  Configuration.parameter! :plugins, identifier
  aliases.each do |aliased|
    Configuration.alias! aliased, identifier
  end
  Configuration.save_defaults
end