summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-25 15:11:45 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-25 15:11:45 +0200
commit80cde0f9e64522efe294def4d761c8353e774cf7 (patch)
tree189266315b456c34c15cad2062516956e76e0dc4 /lib
parentd769f91d90a54fc230c453f43a1064ca0c529196 (diff)
downloadedoors-ruby-80cde0f9e64522efe294def4d761c8353e774cf7.zip
edoors-ruby-80cde0f9e64522efe294def4d761c8353e774cf7.tar.gz
Door: use Particle#init!
Diffstat (limited to 'lib')
-rw-r--r--lib/iotas/door.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/iotas/door.rb b/lib/iotas/door.rb
index a5ffb97..d2466d0 100644
--- a/lib/iotas/door.rb
+++ b/lib/iotas/door.rb
@@ -44,7 +44,7 @@ module Iotas
#
def require_p p_kls
p = @spin.require_p p_kls
- p.src = self
+ p.init! self
p
end
#
@@ -73,13 +73,13 @@ module Iotas
end
#
def send_p p
- p.src = self
+ p.init! self
@saved=nil if @saved==p # particle is sent back the data, all is good
@parent.send_p p # daddy will know what to do
end
#
def send_sys_p p
- p.src = self
+ p.init! self
@saved=nil if @saved==p # particle is sent back the data, all is good
@parent.send_sys_p p # daddy will know what to do
end