Sha256: 806c5d423ea02c09ada0fe566671e35ea6647f25b8f0eb4405f537ac19d2fcb9
Contents?: true
Size: 411 Bytes
Versions: 2
Compression:
Stored size: 411 Bytes
Contents
require 'ara/remote_actor' # Actors class class Actors # Create a new Actor with class klass # # class MyActor < Actor # def receive(message) # ... # end # end # # myActor = Actors.actor_of(MyActor) def self.actor_of(klass) return klass.new() end def self.actor_for(route, host, port) return RemoteActor.new(route, host, port) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ara-0.0.3 | lib/ara/actors.rb |
ara-0.0.2 | lib/ara/actors.rb |