Sha256: b5eb1b1414e7af60ae495032ce41bf85668f199c8adb70a6869f13449fa7e964

Contents?: true

Size: 465 Bytes

Versions: 1

Compression:

Stored size: 465 Bytes

Contents

# -*- coding: utf-8 -*-
require "pb_actor/version"

module PbActor
  class << self
    def included base
      base.send :extend, ClassMethods
    end

    def dead_actor_msg
      'dead actor call'
    end
  end

  module ClassMethods
    def new *args, &blk
      origin = allocate
      proxy = Proxy.new origin
      proxy.async.send :initialize, *args, &blk
      proxy
    end
  end

  class DeadActorError < StandardError
  end
end

require "pb_actor/proxy"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pb_actor-0.0.5 lib/pb_actor.rb