module Actor

Public Class Methods

included(cls) click to toggle source
# File lib/actor/actor.rb, line 2
def self.included cls
  # Actor can be included in the main object (TOPLEVEL_BINDING.receiver) in
  # order to bring the constants contained in within the Actor namespace to
  # the top level. When we do so, it is necessary to prevent the actual mixin
  # from altering the main object.
  return if cls.eql? Object

  cls.class_exec do
    extend Module::Start
    include Module::Dependencies
    include Module::Digest
    include Module::Handler
    include Module::Handler::SendNextMessage
    include Module::RunLoop
    include Module::SuspendResume
  end
end