summaryrefslogtreecommitdiffstats
path: root/lib/evendoors/door.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-11 11:48:21 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-12 09:38:01 +0200
commite0ec845f5818f006c65a639dd62b49205fd703ae (patch)
treef364005f9d1e520e6bcc352586210c1630fa4085 /lib/evendoors/door.rb
parentd2855043c53bd4f84a4ca425947948fd31a93432 (diff)
downloadedoors-ruby-e0ec845f5818f006c65a639dd62b49205fd703ae.zip
edoors-ruby-e0ec845f5818f006c65a639dd62b49205fd703ae.tar.gz
Room,Door: use @spin instead of spin accessor
Diffstat (limited to 'lib/evendoors/door.rb')
-rw-r--r--lib/evendoors/door.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/evendoors/door.rb b/lib/evendoors/door.rb
index 0729adf..4bc1465 100644
--- a/lib/evendoors/door.rb
+++ b/lib/evendoors/door.rb
@@ -41,18 +41,18 @@ module EvenDoors
end
#
def require_p p_kls
- p = spin.require_p p_kls
+ p = @spin.require_p p_kls
p.src = self
p
end
#
def release_p p
@saved=nil if @saved==p # particle is released, all is good
- spin.release_p p
+ @spin.release_p p
end
#
def garbage
- puts " * #{path} didn't give back #{p}" if spin.debug_errors
+ puts " * #{path} didn't give back #{p}" if @spin.debug_errors
puts "\t#{@saved.data EvenDoors::ERROR_FIELD}" if @saved.action==EvenDoors::ACT_ERROR
release_p @saved
@saved = nil
@@ -67,7 +67,7 @@ module EvenDoors
#
def process_sys_p p
# nothing todo with it now
- spin.release_p p
+ @spin.release_p p
end
#
def send_p p