class Tribe::Root

Public Class Methods

new(options = {}) click to toggle source
Calls superclass method Tribe::DedicatedActor::new
# File lib/tribe/root.rb, line 5
def initialize(options = {})
  unless options[:permit_root]
    raise 'Application code should never create the root actor.'
  end

  options.delete(:permit_root)

  super
end

Private Instance Methods

child_died_handler(child, exception) click to toggle source
Calls superclass method Tribe::Actable#child_died_handler
# File lib/tribe/root.rb, line 15
def child_died_handler(child, exception)
  # Let the children die silently since the root actor should live forever.
  begin
    super
  rescue Tribe::ActorChildDied
  end
end